#L_CalcZero
System variable that turns ON when the result is 0.
#L_CalcCarry
System variable that turns ON when digits overflow.
#L_CalcErrCode
System variable that stores the error code when an operation error occurs.
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
F2I
When the positive transition instruction turns ON, the F2I instruction will be executed. When the F2I instruction is executed, the result of the F2I conversion of Data_A is stored in D1.
When using a normally open instruction, the F2I instruction is always executed as long as the normally open instruction variable remains ON.
F2IP
The F2IP and F2I instructions have different ways of detecting when to execute. In the F2IP instruction, only the upward transition is detected and the F2IP instruction is executed even when using a normally open instruction. Even if the normally open instruction variable remains ON, the F2IP instruction is executed only once (for 1 scan).