42
TMR T0 D0 K100
X0
X1
MOV K1 D0
Set value is constant K set value is register D
Power-off retentive, accumulation
(1) Time unit is 1ms, set time is K100, the real time is 1ms *100=0.1s
TMR_A HT0 D0 K1
X0
X1
MOV K100 D0
Set value is constant K set value is register D
(2) Time unit is 10ms, set time is K10, the real time is 10ms*10=0.1s
TMR_A HT0 D0 K10
X0
X1
MOV K10 D0
Set value is constant K set value is register D
(3) Time unit is 100ms, set time is K1, the real time is 100ms*1=0.1s
TMR_A HT0 D0 K100
X0
X1
MOV K1 D0
Set value is constant K set value is register D
Notes
(1) The timer has cumulative, non-cumulative, 1ms, 10ms and 100ms, so it can be
distinguished by instructions; that is to say, the same timer can be used as either cumulative or
non-cumulative, and its time base unit is also specified by instructions as 1ms, 10ms or 100ms.
(2) The third parameter of instruction can only be based on K1, K10 and K100. Please do not
write other values or registers besides these three parameters. Otherwise, although the
program can be written into the programming software and downloaded to the PLC, the
timing instruction will not be executed.
(3) The setting range of constant K and the actual setting value of timer are shown in the
following table:
tudonghoatoancau.com