7-29
7 High-speed Counters
CJ2M CPU Unit Pulse I/O Module User’s Manual
7-3 High-speed Counter Interrupts
7
7-3-3 High-speed Counter Interrupt Instructions
z Contents of the Comparison Table
• Target-value Comparison Table
Depending on the number of target values in the table, the target-value comparison table requires
a continuous block of 4 to 145 words.
• Creating a Range Comparison Tables (Fixed Length of Eight Ranges)
The range comparison table requires a continuous block of 40 words for comparison conditions 1
to 8, which require 5 words each (two words for the upper range value, two words for the lower
range value, and one word for the interrupt task number).
TB+1
TB+2
TB+3
TB 1 to 48 (0001 to 0030 hex)
0
15
03478
000 #0
11121415
TB+142
TB+143
TB+144
Target value 1 (upper word)
Target value 1 interrupt task No.
0000 0000 to FFFF FFFF hex
0000 0000 to FFFF FFFF hex
Number of target values
Interrupt task number:
00 to FF hex (0 to 255 decimal)
Direction
OFF: Incrementing,
ON: Decrementing
Target value 48 (upper word)
Target value 48 interrupt task No.
Target value 48 (lower word)
Interrupt task number
Target value 1 (lower word)
C
TB
TB+1
TB+2
TB+3
0
15
TB+35
TB+36
TB+37
TB+38
TB+39
Note: Always set the upper limit greater than or equal to the lower limit for any one range.
Interrupt task execution condition
OFF: When value enters range
ON: When value leaves range
Interrupt task number
C
15
12
11
8
7 4 3 0
#0
Interrupt task number 00 to FF hex (0 to 255)
AAAA hex: Do not execute interrupt task.
FFFF hex: Ignore the settings for this range.
Range 1 interrupt task number
0000 0000 to FFFF FFFF hex (See note.)
0000 0000 to FFFF FFFF hex (See note.)
0000 0000 to FFFF FFFF hex (See note.)
0000 0000 to FFFF FFFF hex (See note.)
Range 1 lower limit (lower word)
Range 1 lower limit (upper word)
Range 1 upper limit (lower word)
Range 1 upper limit (upper word)
Range 8 interrupt task number
Range 8 lower limit (lower word)
Range 8 lower limit (upper word)
Range 8 upper limit (lower word)
Range 8 upper limit (upper word)
000