7 High-speed Counters
7-22
CJ2M CPU Unit Pulse I/O Module User’s Manual
Target value comparison Range Comparison
The specified interrupt task can be started when the present
value of the high-speed counter matches a target value.
The specified interrupt program can be started when the
present value of the high-speed counter enters or leaves a
set range.
• Executing the Interrupt Task When Entering the Range
• Executing the Interrupt Task When Leaving the Range
0
CTBL instruction executed
High-speed
counter
High-speed
counter PV
Target value 1
Target value 2
Counting enabled
Time
Cyclic task
processing
Cyclic task
processing
Cyclic task
processing
Interrupted
Interrupted
Interrupt task
processing
Interrupt task
processing
Instruction
execution
condition
0
Instruction
input
condition
CTBL instruction executed
High-speed
counter
High-speed
counter PV
Target value
range
Counting enabled
Cyclic task
processing
Cyclic task
processing
Cyclic task
processing
Interrupted Interrupted
Interrupt task
processing
Interrupt task
processing
Time
0
Instruction
input
condition
CTBL instruction executed
High-speed
counter
High-speed
counter PV
Target range
Counting enabled
Cyclic task
processing
Cyclic task
processing
Cyclic task
processing
Interrupted
Interrupted
Interrupt task
processing
Interrupt task
processing
Time