Mitsubishi MELSEC Q Series Programming Manual page 722

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

Advertisement

DATE+(P)
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.)
Program Example
(1) The following program adds 1 hour to the clock data read from the clock element, and stores
the results in the area starting from D100 when X20 is ON.
[Ladder Mode]
[List Mode]
Step
[Operation]
• Time data read operation triggered by DATERDP instruction.
Clock element
• Addition triggered by DATE+P instruction.
D3
D4
D5
7-348
and
is outside the setting range.
S1
S2
or
S1
Instruction
Device
D0
95
D1
D2
15
D3
10
23
D4
41
D5
D6
Hour: 10
D10
Minute: 23
+
D11
Second: 41
D12
or
exceeds the range of the corresponding device.
S2
D
Reads data in the clock element to D0 or later
Sets the time to D0 or later
Year
5
Month
Day
Hour
Time data
Minute
Second
2
Day of week
Hour: 1
Minute: 0
Second: 0
(Error code: 4100)
(Error code: 4101)
D100
Hour: 11
Minute: 23
D101
Second: 41
D102

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents