![background image](http://html1.mh-extra.com/html/omron/cj1m-cpu21/cj1m-cpu21_operation-manual_742493121.webp)
92
REGISTER COMPARISON TABLE: CTBL(882)
Section 5-4
Operands
P: Port Specifier
P specifies the port for which pulses are to be counted as shown in the follow-
ing table.
C: Control Data
The function of CTBL(882) is determined by the control data, C, as shown in
the following table.
TB: First Table Comparison Word
TB is the first word of the comparison table. The structure of the comparison
table depends on the type of comparison being performed.
For target value comparison, the length of the comparison table is determined
by the number of target values specified in TB. The table can be between 4
and 145 words long, as shown below.
P
Port
0000 hex High-speed counter 0
0001 hex High-speed counter 1
C
CTBL(882) function
0000 hex Registers a target value comparison table and starts comparison.
0001 hex Registers a range comparison table and performs one comparison.
0002 hex Registers a target value comparison table. Comparison is started with
INI(880).
0003 hex Registers a range comparison table. Comparison is started with INI(880).
TB+1
TB+2
TB+3
TB
0
15
0
3
4
7
8
0 0 0
0 0 0 0
11
12
14
15
TB+142
TB+143
TB+144
Lower word of target value 1
Upper word of target value 1
Interrupt task number for target value 1
00000000 to FFFFFFFF hex
00000000 to FFFFFFFF hex
Number of target values
0001 to 0030 hex (1 to 48 target values)
Interrupt Task Number
Interrupt task number
00 to FF hex (0 to 255)
Direction
OFF: Incrementing,
ON: Decrementing
Lower word of target value 48
Upper word of target value 48
Interrupt task number for target value 48
Summary of Contents for CJ1M-CPU21
Page 1: ...Cat No W395 E1 03 CJ series Built in I O CJ1M CPU21 22 23 CJ1M CPU Units...
Page 2: ...CJ series Built in I O CJ1M CPU21 22 23 CPU Units Operation Manual Revised August 2004...
Page 3: ...iv...
Page 19: ...xx...
Page 79: ...50 Wiring Examples Section 3 3...
Page 217: ...188 Origin Search and Origin Return Functions Section 6 3...
Page 220: ...191 Built in Outputs Section 7 1...
Page 247: ...218 Built in Outputs Section 7 1...
Page 251: ...222 Combinations of Pulse Control Instructions Appendix A...
Page 255: ...226 Using Pulse Instructions in other CPU Units Appendix B...
Page 263: ...234 Index...
Page 265: ...236 Revision History...