![background image](http://html1.mh-extra.com/html/omron/sysmac-cs-series/sysmac-cs-series_reference-manual_742030919.webp)
879
High-speed Counter/Pulse Output Instructions
Section 3-21
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.
For range comparison, the comparison table always contains eight ranges.
The table is 40 words long, as shown below. If it is not necessary to set eight
ranges, set the interrupt task number to FFFF hex for all unused ranges.
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 SYSMAC CS Series
Page 2: ......
Page 4: ...iv ...
Page 30: ...xxx ...
Page 186: ...146 List of Instructions by Function Code Section 2 4 ...
Page 1320: ...1280 Model Conversion Instructions Unit Ver 3 0 or Later Section 3 35 ...
Page 1390: ...1350 CJ series Instruction Execution Times and Number of Steps Section 4 2 ...
Page 1391: ...1351 Appendix A ASCII Code Table ASCII SP Four leftmost bits Four rightmost bits ...
Page 1392: ...1352 ASCII Code Table Appendix A ...
Page 1404: ...1364 Revision History ...