EasyManua.ls Logo

Mitsubishi Electric MELSEC-Q/L - Page 690

Mitsubishi Electric MELSEC-Q/L
1084 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
688
7 APPLICATION INSTRUCTIONS
7.15 Clock Instructions
Operation error
In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and an error code is stored into SD0.
Program example
The following program adds 1 hour to the clock data read from the clock element, and stores the results into the area
starting from D100 when X20 is turned ON.
Error
code
Error details Q00J/
Q00/
Q01
QnH QnPH QnPRH QnU LCPU
4100 The value set for (S1) and (S2) is not within the setting range. 
4101 The range of the device specified by (S1), (S2) or (D) exceeds the range of
the corresponding device.

[Ladder Mode]
[List Mode]
[Operation]
Time data read operation triggered by DATERDP instruction.
Addition triggered by DATE+P instruction.
Reads data in the clock element to D0 or later
Sets the time to D0 or later
Step Instruction Device
Clock element
95
5
15
D1
D2
Year
Day
Month
10
23
41
2
D0
D3
D4
D5
D6
Hour
Minute
Second
Day of week
Time data
Hour: 1
Minute: 0
Second: 0
D11
D12
Hour: 11
Minute: 23
Second: 41
D101
D102
Hour: 10
Minute: 23
Second: 41
D4
D5
+
D100D10D3

Table of Contents

Related product manuals