11 Use of High-speed Counters
11.6 Timing of Updating of Current Value and Comparison of Current Value
167
FX
3G
Series Programmable Controllers
User's Manual - Hardware Edition
11
H
igh-Speed
C
ounters
12
O
utpu
t Wi
ring
13
Wi
ring for
Va
rious U
ses
14
Te
st R
un,
M
ain
tenanc
e,
Troub
le
shooting
15
Input/O
utput
Pow
ere
d
Extens
ion U
nit
s
16
Input/Output
Ex
tension
Blocks
17
Extensi
on
Pow
er Suppl
y
Un
it
18
O
ther Ex
tensi
on
Un
its
an
d
O
pti
ons
19
Displ
ay
Modul
e
20
Te
rmi
nal Block
11.6
Timing of Updating of Current Value and Comparison of Current Value
11.6.1 Timing of updating of current value
When pulses are input to an input terminal for a high-speed counter, the high-speed counter executes up-
counting or down-counting. The current values of devices are updated when counting is input.
11.6.2 Comparison of current value
To compare and output the current value of a high-speed counter, the following two methods are available.
1. Use of comparison instruction (CMP), band comparison instruction (ZCP) or contact
comparison instruction
Use the comparison instruction (CMP), band comparison instruction (ZCP) or contact comparison instruction
if the comparison result is necessary at counting. Use these instructions only when high-speed processing is
not required because these instructions are processed in the operation cycle of the PLC, and operation delay
is generated before the comparison output result is obtained. Use the comparison instructions for high-speed
counters (HSCS, HSCR and HSZ) described below if it is necessary to execute comparison and change the
output contact (Y) at the same time when the current values of high-speed counters change.
2. Use of Comparison instruction for high-speed counters (HSCS/HSCR/HSZ instruction)
Comparison instructions for high-speed counters (HSCS, HSCR and HSZ instructions) perform comparison
and output the comparison results with the relevant high-speed counting operation. These instructions have
limitations on the number of simultaneously driven instructions as shown in the following table.
When the output relay (Y) has been designated for comparison results, the ON/OFF status of the output is
affected directly until the END instruction output is refreshed.
When the PLC is a relay output type, a mechanical delay in operation (approx. 10ms) is caused.
Therefore, it is best to use a transistor output type PLC.
*1.
The overall frequency changes when the HSCS, HSCR or HSZ instruction is used.
→
For details on the overall frequency, refer to Section 11.7.
Applied instruction
Limitation in number of instructions driven at same time
HSCS
*1
6 instructions
HSCR
*1
HSZ
*1