Precautions Concerning Programs
4-10
4.3 Leading Edge Detection Method
4.3.1 Instructions of Leading Edge Detection Method
Instructions using the leading edge detection operation:
− DF (leading edge differential) instructions
− Count input for CT instructions
− Count input for F118 (UDC) instructions
− Shift input for SR instructions
− Shift input for F119 (LRSR) instructions
− NSTP instructions
− P type high−level instructions (with the prefix “P”) for
FP−C/FP2/FP2SH/FP10SH only
Leading edge detection method
An instruction with a leading edge detection method operates only in the scan where
its trigger is detected switching from off to on.
on
off
Trigger
Executed every scan
on
off
Trigger
Executed only one time
Standard operation Leading edge detection operation
Operation of
instruction
Operation of
instruction
on
off
on
off
The condition of the previous execution and the condition of the current execution are
compared, and the instruction is executed only if the previous condition was off and the
current condition is on. In any other case, the instruction is not executed.