If operand S1 cannot evaluate the value (such as when the execution result exceeds the valid range), the instruction will not run.
When an error occurs, #L_Error turns ON.
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 value 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 value 10 is stored in D1.
Even when using a normally open instruction, the MOVP instruction executes only when it detects an upward transition.
Therefore, even when the NO instruction is always ON, the MOVP instruction is executed only for one scan.