Справочник Пользователя для Mitsubishi Electronics QCPU
7-346
DATEWR(P)
7.15.2
Writing clock data (DATEWR(P))
DATEWR(P)
Function
(1) Writes clock data stored in the device number designated by
or later device number to
the clock element of the CPU module.
(2) Each item is set as a BIN value.
(3) The "year" at
is designated by using four-digit year indication between 1980 to 2079.
(4)
+1 designates the "month" in values of from 1 to 12 (January to December).
(5)
+2 designates the "day" in values of from 1 to 31.
(6)
+3 designates the "hour" in values of from 0 to 23 (using 24-hour clock, from 0 hours to 23
hundred hours). (Uses the 24-hour clock.)
(7)
+4 designates the "minute" in values of from 0 to 59.
(8)
+5 designates the "second" in values of from 0 to 59.
(9)
+6 designates the "day of week" in values of from 0 to 6 (Sunday to Saturday).
: Head number of the devices where clock data to be written into the clock device is stored (BIN 16 bits)
Setting
Data
Internal Devices
R, ZR
J
\
U
\G
Zn
Constants
Other
Bit
Word
Bit
Word
––
––
Day of week
Sun Mon
Tue Wed Thu
Fri
Sat
Stored data
0
1
2
3
4
5
6
Basic
Process
High
performance
Redundant Universal
DATEWR
DATEWRP
Command
Command
DATEWR
DATEWRP
S
S
S
S
S
Year
Month
Day
+1
+2
+3
+4
+5
+6
Hour
Minute
Second
Day of week
Clock element
S
S
S
S
S
S
S
S
S
S
S
S
S
S
S