When the execution result is 0, #L_CalcZero turns on.
When the execution results in an error, the error code is stored in #L_CalcErrCode.
When checking the result using system variables, make sure the check takes place after the instruction has been executed. When checking the state after multiple instructions have been executed, system variables will store the result only of the last processed instruction.
Program Example
I2F
When the positive transition instruction turns ON, the I2F instruction will be executed. When the I2F instruction is executed, the result of the I2F conversion of Data_A is stored in D1.
When using a normally open instruction, the I2F instruction is always executed as long as the normally open instruction variable remains ON.
I2FP
The I2FP and I2F instructions have different ways of detecting when to execute. In the I2FP instruction, only the upward transition is detected and the I2FP instruction is executed even when using a normally open instruction. Even if the normally open instruction variable remains ON, the I2FP instruction is executed only once (for 1 scan).