Mitsubishi MELSEC Q Series Programming Manual page 743

Common instruction 1/2
Hide thumbs Also See for MELSEC Q Series:
Table of Contents

Advertisement

(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.
S1
S1
+1
S1
+2
S1
+3
S1
+4
Devices,
A clock data read by the S(P).DATERD instruction can be directly added.
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.
• The data set by
• The device specified by
(For the Universal model QCPU, LCPU.)
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.
Hour: 14
S2
Minute: 20
S2
+1
S2
+2
Second: 30
+
+3
--
S2
+4
Millisecond: 875
S2
+3,
+3, and
S1
S2
D
D
Minute
D
+1
D
+2
Second
Day of week
D
+3
D
+4
Millisecond
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.
and
is outside the range. (See Function (1).)
S1
S2
,
or
S1
S2
D
Hour: 20
Minute: 20
Second: 20
--
Millisecond: 500
+3 are not used for operation.
Hour
exceeds the range of the corresponding device.
S(P).DATE+
D
Hour: 10
D
+1
Minute: 40
D
+2
Second: 51
D
+3
--
D
+4
Millisecond: 375
(Error code: 4100)
(Error code: 4101)
7-369
1
2
3
4
6
6
7
8

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents