EasyManua.ls Logo

Xinje XD5 - Time Value

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...
42
TMR_A HT0 K10
K10
X0
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 K1 K100
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:
Timer
K range
Actual value
1ms timer
132,767
0.00132.767s
10ms timer
0.01327.67s
100ms timer
0.13276.7s
The time value is stored in register TD. The working mode of timer T0~T575 and HT0~HT95
are 16-bits linear increasing. The time range is from 0 to 32767. When the time value in TD
reaches 32767, the timer will stop timing and keep the status.
MOV T0 D0
X0
MOV TD0 D0
X0
The two instructions are the same. In the first instruction, T0 is seemed to TD0.
Time value

Table of Contents

Related product manuals