47
32-bit counter (common, count up)
《
set value is constant K
》《
set value is register
》
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 D0
X1
X0
DMOV K43100 D0
32-bit counter (common, count down)
《
set value is constant K
》《
set value is register
》
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 D0
X1
X0
DMOV K-43100 D0
Note: The setting range and actual setting value of constant K are shown in the following
table:
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
tudonghoatoancau.com