83
High-speed Counter Board
Section 2-1
The following is an explanation of the use of INI(61). Refer to
Reset Methods
on page 71 for an explanation of the use of the reset methods.
Changing PV with INI(61)
INI(61) is used to change the PV of high-speed counters 1 to 4.
Note
After matching the final target value in a target value comparison table, the
comparison process returns automatically to the first target value in the table.
Therefore, following completion of a sequence of comparisons, the process
can be repeated by initializing the PV.
Stopping and Restarting
the Counting Operation
It is possible to stop the counting operation of one of the high-speed counters
1 to 4 by turning ON a control bit. The PV of the counter will be retained.
The counting operation can be stopped by turning ON bits 12 to 15 of IR 212
for slot 1 or AR 05 for slot 2. These bits correspond to high-speed counters 1
to 4. Turn OFF these bits to restart the counting operation. The high-speed
counter will restart from the value at which it was stopped.
Note
The Counter Operating Flag can be used to determine whether the count
operation is running or stopped (0: Stopped; 1: Operating).
Examples
The following example illustrates the use of high-speed counter 1 on a High-
speed Counter Board mounted in slot 2. Target value comparison is per-
formed to turn ON bits in the internal/external bit patterns stored in memory
according to the PV of the counter. The status of the internal output bits is
used to control the frequency of a contact pulse output.
The Reset Bit is kept ON in the program so that the PV of the counter is reset
on the phase Z signal after the last target value has been reached.
Before running the program, the PC Setup should be set as shown below, and
the CQM1H restarted to enable the new setting in DM 6611.
High-speed counter No.
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 specifier
C: 002
P1: First PV word
(@)INI(61)
P
C
P1
Leftmost
four digits
P1 + 1
P1
F8000000 to 07FFFFFF Hex
F8388608 to 08388607 BCD
00000000 to 07FFFFFF Hex
00000000 to 08388607 BCD
Rightmost four
digits
Ring Mode
Ring Mode
(The leftmost digit will be F Hex
if the number is negative.)
High-speed counter
Counter Operating Flag
Slot 1
Slot 2
High-speed counter 1
IR 20812
IR 24012
High-speed counter 2
IR 20912
IR 24112
High-speed counter 3
IR 21012
IR 24212
High-speed counter 4
IR 21112
IR 24312