7 High-speed Counters
7-34
CJ2M CPU Unit Pulse I/O Module User’s Manual
When execution condition W0.00 turns ON, the comparison starts for high-speed counter 1.
When the PV of high speed counter 1 is between 25,000 and 25,500, cyclic task execution
is interrupted, and interrupt task 12 is executed.
When interrupt task 12 execution is completed, execution of the interrupted cyclic task
resumes.
Example: Executing the Interrupt Task When Entering a Range
W0.00
@CTBL
#0001
#0001
D2000
Uses high-speed counter 1.
Registers a target value comparison
table and starts comparison.
First comparison table word
W0.00
CIO 2960.06
CIO 2960.07
High-speed counter 1, PV
(in A272 and A273)
Lower limit value: 25,000 (61A8 hex)
Upper limit value: 25,500 (639C hex)
Starts comparison.
Cyclic task
processing
Cyclic task
processing
Cyclic task
processing
Interrupted
Interrupted
Interrupt task
12 processing
Interrupt task
12 processing