3 CONFIGURATION OF INSTRUCTIONS
3.7 Conditions for Execution of Instructions
117
3
3.7 Conditions for Execution of Instructions
The following four types of execution conditions exist for the execution of CPU module sequence instructions, basic
instructions, and application instructions:
For coil or equivalent basic instructions or application instructions, where the same instruction can be designated for either
execution at ON or rising edge execution, a "P" is added after the instruction name to specify the condition for execution.
• Instruction to be executed at ON [Instruction name]
• Instruction to be executed at rising edge [Instruction name] + P
Execution at ON and execution at rising edge for the MOV instruction are designated as follows:
Execution condition Description
Non-conditional execution An instruction is always executed regardless of whether the precondition of the instruction is on or off. When the
precondition is off, the instruction performs off processing.
Executed at ON An instruction is executed during on. It is executed only while the precondition is on. When the preconditions is off,
the instruction is not executed.
Executed at the rising edge An instruction is executed one time when turned on. It is executed only once on the rising edge (off to on) of the
precondition of the instruction and is no longer executed later even when the condition turns on.
Executed at OFF An instruction is executed during off. It is executed only while the precondition is off. When the precondition is on,
the instruction is not executed.
Executed at the falling edge An instruction is executed one time when turned off. It is executed only once on the falling edge (on to off) of the
precondition of the instruction and is no longer executed later even when the condition turns off.
MOVP K4X0 D0
Execution at leading edge
MOV K4X0 D0
Execution during ON