80
High-speed Counter Board
Section 2-1
Usage
High-speed counters are programmed as follows:
• The count operation is started as soon as valid settings are made.
• The PV is reset to 0 when power is turned ON and when program execu-
tion is started or stopped.
• The count operation alone does not start the comparison operation with
the comparison table.
• The PV can be monitored using the words shown in the following table.
Starting Comparison Operation
The comparison table is registered in the CQM1H and the comparison started
with CTBL(63). Comparison can also be started using the relevant control bits
(IR 21208 to IR 21211 for slot 1 AR 0508 to AR 0511 for slot 2).
Starting Comparison with CTBL(63)
Setting 000 as the value of C registers a target value comparison table, and
setting 001 registers a range comparison table. Comparison begins upon
completion of this registration. While comparison is being executed, a bit pat-
tern is stored as internal output bits and external output bits, as determined by
the comparison table. Refer to the description of CTBL(63) for details on com-
parison table registration.
Note
Although setting the value of C to 002 registers a target value comparison
table, and setting C to 003 registers a range comparison table, comparison
does not start automatically for these values. A control bit or INI(61) must be
used to start the comparison operation.
Starting Comparison with Control Bits
The comparison operation will start when the bit corresponding to the high-
speed counter in IR 21208 to IR 21211 for slot 1 or AR 0508 to AR 0511 for
slot 2 is turned ON. It is necessary to have registered a comparison table
beforehand. Comparisons cannot be performed in PROGRAM mode.
Note
The High-speed Counter Board outputs the results of comparison as bit pat-
terns to specific bits in memory, and does not execute interrupt subroutines.
High-speed counter
Word
Slot 1
Slot 2
High-speed counter 1
IR 200, IR 201
IR 232, IR 233
High-speed counter 2
IR 202, IR 203
IR 234, IR 235
High-speed counter 3
IR 204, IR 205
IR 236, IR 237
High-speed counter 4
IR 206, IR 207
IR 238, IR 239
High-speed counter
Value specified in P
Slot 1
Slot 2
High-speed counter 1
101
001
High-speed counter 2
102
002
High-speed counter 3
103
003
High-speed counter 4
104
004
P: Port
C: Mode
000: Target value table registration and comparison start
001: Range comparison table registration and comparison start
002: Target value table registration only
003: Range comparison table registration only
TB: First word of comparison table
(@)CTBL(63)
P
C
TB
Содержание SYSMAC CQM1H Series
Страница 3: ...iv...
Страница 5: ...vi...
Страница 9: ......
Страница 11: ......
Страница 15: ...xvi...
Страница 87: ...62 Calculating with Signed Binary Data Section 1 7...
Страница 169: ...144 Serial Communications Board Section 2 6...
Страница 537: ......
Страница 565: ......
Страница 569: ......
Страница 573: ......
Страница 577: ......