Applied Instructions
D10 (Hour)
D11 (Minute)
D12 (Second)
D20 (Hour)
D21 (Minute)
D22 (Second)
D30 (Hour)
D31 (Minute)
D32 (Second)
+
S1 S2
D
10 hour 20 min. 30 sec.
3 hour 20 min. 10 sec.
13 hour 40 min. 40 sec.
18 (Hour)
10 (Minute)
30 (Second)
10 (Hour)
20 (Minute)
5 (Second)
4 (Hour)
30 (Minute)
35 (Second)
+
S1 S2
D
18 hour 10 min. 30 sec.
3 hour 20 min. 10 sec.
4 hour 30 min. 35 sec.
Function & Action
z Each of S1, S2 and D specify the head address of 3 data devices to be used a time value.
The time value in S1 is added to the value in S2, the result is stored to D as a new time
value.
z If the addition of the two times results in a value greater than 24 hours, the value of the
result is the time remaining above 24 hours. When this happens the carry flag M8022 is
z When the result is 0(0 Hour 0 Minute 0 Second),Set zero fla
ON.
The valid range of “Hour” is「0~23」.
The valid range of “Minute” s「0~59」.
The valid range of “Second” is「0~59」.
(D10, D11, D12)+(D20, D21, D22)→(D30, D31, D32)
TADD
D10
D20
D30
X0
S1·
S2·
D·
[TADD]
16 bits instruction:DIV 32 bits instruction:DDIV
Suitable Models:
XC3、XC5
Word
Device
Bit
Device
D
FD
DM
DX
DY
DS
TD
CD
K/H
S1·
S2·
D·
X
Y
M
S
T
C
Dn.m
i
131