![Xinje XD Series User Manual Download Page 48](http://html.mh-extra.com/html/xinje/xd-series/xd-series_user-manual_887444048.webp)
47
《
set value is constant K
》
《
set value is register
》
DCNT C0 K43100
X1
DCNT C0 D0
X1
X0
DMOV K43100 D0
32-bit counter (power-off retentive, count up)
《
set value is constant K
》
《
set value is register
》
DCNT HC0 K43100
X1
DCNT HC0 D0
X1
X0
DMOV K43100 D0
32-bit counter (common, count down)
《
set value is constant K
》
《
set value is register
》
DCNT_D C0 K-43100
X1
DCNT_D C0 D0
X1
X0
DMOV K-43100 D0
32-bit counter (power-off retentive, count down)
《
set value is constant K
》
《
set value is register
》
DCNT_D HC0 K-43100
X1
DCNT_D HC0 D0
X1
X0
DMOV K-43100 D0
Note: The setting range and actual setting value of constant K are shown in the following
table:
Counter
K setting range
Actual setting range
16-bit counter
1
~
32,767
1
~
32,767
32-bit counter
1
~
2,147,483,647
1
~
2,147,483,647
The counter counting mode is 16-bit linear incremental mode (0~K32,767). When the
counter's count value CD reaches the maximum value K32,767, the counter will stop counting
and the state of the counter will remain unchanged.
The counter counting mode is a 16-bit linear decreasing mode (-32768-0). When the counter
counting value CD decreases to the minimum value K-32, 768 will stop counting and the state
of the counter remains unchanged.
The counter counting mode is 32-bit linear increase/decrease mode (
-2,147,483,648~+2,147,483,647). When the counter counting value increases to the
maximum value K2,147,483,647, it will become K-2,147,483,648. When the counter
counting value decreases to the minimum value K-2,147,483,648 will become
Count value