589
S.DATERD, SP.DATERD
1
2
3
4
4
6
7
8
7.16
Expa
nsion Clock Instru
ctions
7.16.1
S
.DATERD, SP
.DATERD
7.16
Expansion Clock Instructions
: Head number of the devices where the read clock data will be stored (BIN 16 bits)
F
unct
i
on
(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 or later device.
(2) The "year" at is stored as 4-digit year indication.
(3) The "day of the week" at +6 is stored as 0 to 6 to represent the days Sunday to Saturday.
(4) Compensation is made automatically for leap years.
Operat
i
on
E
rror
(1) In the following case, an operation error occurs, the error flag (SM0) turns ON, and an error code is stored into SD0.
S.DATERD, SP.DATERDReading expansion clock data
7.16.1
S.DATERD, SP.DATERD
• High Performance model QCPU, Process CPU, Redundant
CPU: The serial number (first five digits) is "07032" or later.
Setting
Data
Internal Devices
R, ZR
J \
U \G
Zn
Constants
Other
Bit
Word
Bit
Word
––
––
Day of week
Sunday
Monday
Tuesday
Wednesday
Thursday
Friday
Saturday
Stored data
0
1
2
3
4
5
6
Error
code
Error details
Q00J/
Q00/
Q01
QnH
QnPH QnPRH
QnU
LCPU
4101
The range of the device specified by exceeds the range of the
corresponding device.
––
––
––
––
Bas
i
c
Process
High
performance
Redundant Universal
LCPU
Ver.
Ver.
Ver.
S.DATERD
SP.DATERD
Command
Command
S
.
DA
TE
RD
SP
.
DA
TE
RD
D
D
D
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
w
eek
Clock element
D
D
D
D
D
D
D
+7
(0 to 999)
Millisecond
D
D
D
D