EasyManua.ls Logo

Xinje XD5 - Page 42

Xinje XD5
389 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
41
1. Instruction format
TMR T0 K200
K10
S1 S2 S3
TMR_A T0 K2000
K10
S1 S2 S3
Reset the timer and output:
RST T0
S1
S1: timer (T0, HT10)
S2: set time (such as K100)
S3: time unit (K11ms, K1010ms, K100100ms)
Power-off not retentive, not accumulation
(1) Time unit is 1ms, set time is K100, the real time is 1ms *100=0.1s
TMR T0 K100 K1
X0
TMR T0 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 T0 K10 K10
X0
TMR T0 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 T0 K1 K100
X0
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 K100
K1
X0
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
(Not accumulation)
(Accumulation)

Table of Contents

Related product manuals