7-330
7.15 Clock Instructions
7.15.4 Clock data subtraction
DATE-
7.15.4
Clock data subtraction
DATE-
Function
(1) Subtracts the time data specified for
from the clock data specified for
, and stores the
result to
and the following devices.
For example, if the clock time 3:50:10 were subtracted from the clock time 10:40:20, the
operation would be performed as follows.
DATE-(P)
P: Executing condition
:
indicates any of the following
instructions.
DATE-
DATE-P
Input argument,
EN:
Executing condition
:Bit
s1:
Clock (time) data
:Array of ANY16 (0..2)
s2:
Time data to be subtracted
:Array of ANY16 (0..2)
Output argument,
ENO:
Execution result
:Bit
d:
Clock (time) data of the subtraction result
:Array of ANY16 (0..2)
Setting
data
Internal device
R, ZR
J
\
U
\G
Zn
Constant
Others
Bit
Word
Bit
Word
−
−
−
−
−
−
Universal
UD
High
Performance
Structured ladder
ST
D
ATE-
EN
ENO
s
1
d
s
2
N
ot
supporte
d
s
1
s
2
d
s
2
s
1
d
d
s
2
s
1
[
1
]
[
0
]
[
2
]
(0
to
23)
(0
to
59)
(0
to
59)
Hour
M
inute
S
econ
d
Hour
M
inute
S
econ
d
[
1
]
[
0
]
[
2
]
(0
to
23)
(0
to
59)
(0
to
59)
s
1
s
1
s
2
s
2
d
d
Data range
Data range
[
1
]
[
0
]
[
2
]
(0
to
23)
(0
to
59)
(0
to
59)
Hour
M
inute
S
econ
d
Data range
-
Hour:
3
M
inute:
50
S
econ
d
:
10
Hour:
6
M
inute:
50
S
econ
d
:
10
Hour:
10
M
inute: 4
0
S
econ
d
:
20
s
1
s
1
s
1
d
d
d
s
2
s
2
s
2
[
1
]
[
0
]
[
2
]
[
1
]
[
0
]
[
2
]
[
1
]
[
0
]
[
2
]
-
Summary of Contents for MELSEC Q Series
Page 1: ...Structured Programming Manual Mitsubishi Programmable Controller QCPU Common Instructions ...
Page 2: ......
Page 14: ...A 12 MEMO ...
Page 340: ...6 178 MEMO MTR ...
Page 708: ...7 368 MEMO ...
Page 776: ...8 68 MEMO ...
Page 796: ...9 20 MEMO ...
Page 804: ...App 8 MEMO ...
Page 812: ...Index 8 MEMO ...
Page 815: ......