If a numeric value cannot be indicated by operand S1 (when the execution result exceeds the range), the instruction will not be executed.
#L_Error turns on, and the error code (6706) is written to #L_CalcErrCode.
The result in D1 maintains the value from the previous successfully run instruction.
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
MOV
Stores the constant in the integer variable.
When the positive transition instruction turns ON, the MOV instruction will be executed. When the MOV instruction is executed, the constant 10 is stored in D1.
When using a normally open instruction, as long as the instruction variable is ON, the MOV instruction is always executed.
MOVP
When the normally open instruction turns ON, the MOVP instruction is executed. When the MOVP instruction is executed, the constant 10 is stored in D1.
Even when using a normally open instruction, the MOVP instruction executes only when it detects the upward transition.
Therefore, even when the NO instruction is always ON, the MOVP instruction is executed only for one scan.