Mitsubishi MELSEC-Q/L Programming Manual page 594

Table of Contents

Advertisement

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.
Hour: 14
S1
S1
Minute: 20
+1
S1
Second: 30
+2
S1
--
+3
S1
Millisecond: 875
+4
Devices,
+3,
S1
A clock data read by the S(P).DATERD instruction can be directly added.
When the clock data is read by the S(P).DATERD instruction,
day of week is inserted between "second" and "millisecond".
If the S(P).DATE+ instruction is used to read the clock data,
the data can be directly used for addition since it does not perform
the calculation for the day of a week.
Operation Error
(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.
Error
code
The value set for
and
S1
4100
Function (1).)
The range of the device specified by
4101
the corresponding device.
Caution
(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.
592
Hour: 20
S2
+1
S2
Minute: 20
S2
+2
Second: 20
+
S2
+3
--
S2
+4
Millisecond: 500
+3, and
+3 are not used for operation.
S2
D
Hour
D
D
Minute
+1
Second
D
+2
D
Day of week
+3
D
+4
Millisecond
Error details
is not within the setting range. (See
S2
,
or
exceeds the range of
S1
S2
D
Hour: 10
D
D
+1
Minute: 40
D
+2
Second: 51
D
+3
--
D
+4
Millisecond: 375
Q00J/
Q00/
QnH
QnPH QnPRH
Q01
––
––
––
––
QnU
LCPU
––

Advertisement

Table of Contents
loading

Table of Contents