46
32-bit counter:
Reset instruction:
16-bit counter:
32-bit counter:
S1: counter (such as C0, HC10)
S2: counter set value (such as K100)
The counter is different from XC series. They don’t have 16-bit and 32-bit type. The type is
set through instruction.
16-bit counter (common, count up)
《
set value is constant K
》《
set value is register
》
16-bit counter (power-off retentive, count up)
《
set value is constant K
》《
set value is register
》
16-bit counter (common, count down)
《
set value is constant K
》《
set value is register
》
CNT_D C0 D0
X1
X0
MOV K-5 D0
16-bit counter (power-off retentive, count down)
《
set value is constant K
》《
set value is register
》
CNT_D HC0 D0
X1
X0
MOV K-5 D0
tudonghoatoancau.com