
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
Содержание SYSMAC CS Series
Страница 2: ......
Страница 4: ...iv ...
Страница 30: ...xxx ...
Страница 186: ...146 List of Instructions by Function Code Section 2 4 ...
Страница 194: ...154 3 35 4 MOVE BIT MOVBC 568 1273 3 35 5 BIT COUNTER BCNTC 621 1275 3 35 6 GET VARIABLE ID GETID 286 1277 ...
Страница 1320: ...1280 Model Conversion Instructions Unit Ver 3 0 or Later Section 3 35 ...
Страница 1390: ...1350 CJ series Instruction Execution Times and Number of Steps Section 4 2 ...
Страница 1391: ...1351 Appendix A ASCII Code Table ASCII SP Four leftmost bits Four rightmost bits ...
Страница 1392: ...1352 ASCII Code Table Appendix A ...
Страница 1404: ...1364 Revision History ...