EasyManua.ls Logo

Thinget XC Series - [Tsub]

Thinget XC Series
283 pages
Print Icon
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...
Applied Instructions
TSUB D10 D20 D30
X0
S1·
S2·
D10 (Hour)
D11 (Minute)
D12 (Second)
D10 (Hour)
D11 (Minute)
D12 (Second)
D10 (Hour)
D11 (Minute)
D12 (Second)
_
=
S1 S2
D
10 hour 20 min. 30 sec. 3 hour 20 min. 10 sec. 7 hour 0 min. 20 sec.
10 (Hour)
20 (Minute)
5 (Second)
18 (Hour)
10 (Minute)
30 (Second)
4 (Hour)
30 (Minute)
35 (Second)
_
=
S1 S2
D
10 hour 20 min. 5 sec. 18 hour 10 min. 30 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 subtracted from the time value in S2, the result is stored to D as a
new time.
z If the subtraction of the two times results in a value less than 00:00:00 hours, the value
of the result is the time remaining below 00:00:00 hours. When this happens the borrow
flag M8021 is set ON.
z When the result is 0 (0 hour 0 min. 0 sec.), zero flag set ON.
The valid range of “Hour” is0~23.
The valid range of “Minute” is0~59.
The valid range of “Second” is0~59.
(D10, D11, D12)(D20, D21, D22)(D30, D31, D32)
[TSUB]
16 bits instructionDIV 32 bits instructionDDIV
Suitable Models
XC3XC5
¾
Word
Device
Bit
Device
X
Y
M
S
T
C
Dn.m
D
FD
DM
DX
DY
DS
TD
CD
K/H
S1·
S2·
132

Table of Contents

Related product manuals