Mitsubishi MELSEC-Q/L Programming Manual page 591

Table of Contents

Advertisement

7.16
Expansion Clock Instructions
7.16.1
S.DATERD, SP.DATERDReading expansion clock data
7.16.1
S.DATERD, SP.DATERD
S.DATERD
SP.DATERD
: Head number of the devices where the read clock data will be stored (BIN 16 bits)
D
Internal Devices
Setting
Data
Bit
Word
––
D
Function
(1) Reads "year, month, day, hour, minute, second, day of the week, and millisecond" from the clock element of the CPU
module, and stores it as BIN value into the device specified by
(2) The "year" at
is stored as 4-digit year indication.
D
(3) The "day of the week" at
Day of week
Sunday
Stored data
0
(4) Compensation is made automatically for leap years.
Operation Error
(1) In the following case, an operation error occurs, the error flag (SM0) turns ON, and an error code is stored into SD0.
Error
code
The range of the device specified by
4101
corresponding device.
Command
Command
J
\
R, ZR
Bit
D
D
D
D
Clock element
D
D
D
D
+6 is stored as 0 to 6 to represent the days Sunday to Saturday.
D
Monday
Tuesday
Wednesday
1
2
Error details
exceeds the range of the
D
S.DATERD, SP.DATERD
Ver.
High
Basic
performance
• High Performance model QCPU, Process CPU, Redundant
CPU: The serial number (first five digits) is "07032" or later.
S.DATERD
SP.DATERD
U
\G
Word
––
or later device.
D
Year
(1980 to 2079)
+1
Month
(1 to 12)
+2
Day
(1 to 31)
Hour (24-hour clock)
+3
(0 to 23)
Minute
(0 to 59)
+4
Second
+5
(0 to 59)
Day of week
+6
(0 to 6)
Millisecond
+7
(0 to 999)
Thursday
Friday
3
4
Q00J/
Q00/
QnH
Q01
––
––
Ver.
Ver.
Process
LCPU
Redundant Universal
D
D
Zn
Constants
Other
Saturday
5
6
QnPH QnPRH
QnU
LCPU
––
––
1
2
3
4
4
6
7
8
589

Advertisement

Table of Contents
loading

Table of Contents