I have a rung of code looking to see if DST10 is equal to 3 which turns on a Modbus output coil. However when I place the DM in program mode the Modbus coil remains on. I assume it is because the ladder is no longer running. So how do I read if a DM is in run mode?