![Xinje XD Series User Manual Download Page 46](http://html.mh-extra.com/html/xinje/xd-series/xd-series_user-manual_887444046.webp)
45
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:
CNT
C0
K200
S1
S2
CNT_D
C1
K-100
S1
S2
Count up
Count down
32-bit counter:
Counter set value
32-bit common counter and power-off retentive counter