Conditions For Execution Of Instructions - Mitsubishi MELSEC-Q/L Programming Manual

Table of Contents

Advertisement

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:
• Non-conditional execution...........Instructions executed without regard to the ON/OFF status of the device
• Executed at ON...........................Instructions executed while input condition is ON
• Executed at leading edge............Instructions executed only at the leading edge of the input condition (when it goes from
• Executed at trailing edge.............Instructions executed only at the trailing edge of the input condition (when it goes from
For coil or equivalent basic instructions or application instructions, where the same instruction can be designated for either
execution at ON or leading edge execution, a "P" is added after the instruction name to specify the condition for execution.
• Instruction to be executed at ON
• Instruction to be executed at leading edge
Execution at ON and execution at leading edge for the MOV instruction are designated as follows:
MOV
K4X0
MOVP
K4X0
Example
LD X0, OUT Y10
Example
MOV instruction, FROM instruction
OFF to ON) Example
PLS instruction, MOVP instruction.
ON to OFF) Example
PLF instruction.
Instruction name
Instruction name
D0
Execution during ON
D0
Execution at leading edge
+ P
2
3
4
5
6
7
8
109

Advertisement

Table of Contents
loading

Table of Contents