45
The set value range of 16-bit count-up counter is K1~K32,767(decimal). K0 and K1 have the
same function. They mean the counter output will act at the first counting.
If the PLC power supply is cut off, common counter value will be reset. The power-off
retentive counter value will be kept.
RST C0
X10
X11
C0
CNT C0
K10
Y0
( )
The counter C0 increases one when the X11 drives once. When C0 value reaches 10, the
output acts. Then X11 drives again, C0 will continue increase one.
If X10 is ON, the C0 and output will be reset.
The counter set value can be constant K or register. For example, if D10 is 123, the set value
is equal to K123.
The set value range of 32-bit count-up/down counter is K+2,147,483,648~K-2,147,483,647
(decimal). The count direction is set through instruction.
DCNT C0 K5
X4
X3
RST C0
C0
( )
Y0
DCNT_D HC0 K-5
X4
RST HC0
HC0
( )
Y0
X3
Common count up counter power-off retentive count
down counter
If X3 is ON, the counter and output will be reset.
For power-off retentive counter, the present counter value, output state will be kept after
power supply is off.
32-bit counter can be seemed to 32-bit register.
The set value contains two conditions: 16-bit and 32-bit. The counter types include common
counter (C) and power-off retentive counter (HC).
Count instruction:
16-bit counter:
16-bit common counter and power-off retentive counter
32-bit common counter and power-off retentive counter
tudonghoatoancau.com