592
S.DATE+, SP.DATE+
(2) If the results of the addition of time exceed 24 hours, 24 hours will be subtracted from the sum to make the final operation
result.
For example, when the time 20:20:20:500 is added to 14:20:30:875, the result is not 34:40:51:375, but 10:40:51:375.
Devices,
+3,
+3, and
+3 are not used for operation.
A clock data read by the S(P).DATERD instruction can be directly added.
Operat
i
on
E
rror
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and an error code is stored into
SD0.
Caut
i
on
(1) Specifying digit for the bit device can be used only when the following conditions (a) and (b) are met.
(a) Digit specification: K4
(b) Head of device: multiple of 16
When the above conditions (a) and (b) are not met, INSTRCT CODE ERR.
(error code:4004) will occur.
Error
code
Error details
Q00J/
Q00/
Q01
QnH
QnPH QnPRH
QnU
LCPU
4100
The value set for and is not within the setting range. (See
Function (1).)
––
4101
The range of the device specified by , or exceeds the range of
the corresponding device.
––
––
––
––
D
S2
S1
+
1
+
2
+
1
+
2
+
1
+
2
+
S1
S1
S2
S2
D
D
H
our
:
1
4
M
i
nute
:
20
Second
:
30
+
3
+
3
+
3
S1
S2
D
--
+4
+4
+4
S1
S2
D
M
illi
second
:
875
H
our
:
20
M
i
nute
:
20
Second
:
20
--
M
illi
second
:
500
H
our
:
10
M
i
nute
: 4
0
Second
:
51
--
M
illi
second
:
375
S1
S2
D
+
1
+
2
+
3
H
our
M
i
nute
Second
Day
of
w
eek
D
D
D
D
M
illi
second
When
the
c
l
ock
data
i
s
read
by
the
S(P)
.
DA
TE
RD
i
nstruct
i
on,
day
of
w
eek
i
s
i
nserted
bet
w
een
"
second
"
and
"
m
illi
second
".
I
f
the
S(P)
.
DA
TE+ i
nstruct
i
on
i
s
used
to
read
the
c
l
ock
data,
the
data
can
be
d
i
rect
l
y
used
for
add
i
t
i
on
s
i
nce
i
t
does
not
perform
the
ca
l
cu
l
at
i
on
for
the
day
of
a
w
eek
.
+4
D
S1
S2
S1
S2
D