EasyManua.ls Logo

Mitsubishi Electric MELSEC-Q/L - Clock Instructions; Reading Clock Data

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...
7 APPLICATION INSTRUCTIONS
7.15 Clock Instructions
683
7
7.15 Clock Instructions
Reading clock data
DATERD(P)
Processing details
Reads "year, month, day, hour, minute, second, and day of week" from the clock element of the CPU module and stores it
as BIN value to the device designated by (D) or later device.
The "year" at (D) is stored as 4-digit year indication.
The "day of week" at (D)+6 is stored as 0 to 6 to represent the days Sunday to Saturday.
Compensation is made automatically for leap years.
Operation error
In the following case, an operation error occurs, the error flag (SM0) turns ON, and an error code is stored into SD0.
(D): Head number of the devices where the read clock data will be stored (BIN 16 bits)
Setting
data
Internal device R, ZR J\ U\G Zn Constant Others
Bit Word Bit Word
(D) 
Day of week Sun Mon Tue Wed Thu Fri Sat
Stored data 0123456
Error
code
Error details Q00J/
Q00/
Q01
QnH QnPH QnPRH QnU LCPU
4101 The range of the device specified by (D) exceeds the range of the
corresponding device.

Basic
Process
High
performance
Redundant
Universal
LCPU
DATERD
DATERDP
Command
Command
DATERD
DATERDP
D
D
Year
Month
Day
+1
+2
(1980 to 2079)
(1 to 12)
(1 to 31)
+3
(0 to 23)
+4
(0 to 59)
+5
(0 to 59)
+6(0 to 6)
Hour (24-hour clock)
Minute
Second
Day of week
Clock element
D
D
D
D
D
D
D

Table of Contents

Related product manuals