Example 2) CT (counter) instruction
Add SR14
X100
CT200 count
operation
RUN
(Power ON)
This is counted because the counter input condition changes from
OFF to ON in the second scan, even if X100 has been set ON
earlier.
X100
X101
CT 200
U10
X100
X101
CT 200
U10
SR14
■
Precautions When Using Control Instructions
● The condition of the previous execution and the condition of the current execution are
compared, and the leading edge detection instruction is executed only if the previous
condition was OFF and the current condition is ON. They are not executed in any other
circumstance.
● Therefore, take care that, when a leading edge detection instruction is used in combination
with an instruction which changes the order of instruction execution, such as MC - MCE or
JP - LBL, operations may change as follows depending on input timing.
19.7 Rise Detection Method
19-16 WUME-FP7CPUPGR-12