Справочник Пользователя для Mitsubishi Electronics MELSEC -Q/L

Скачать
Страница из 1086
686
7  APPLICATION INSTRUCTIONS
7.15  Clock Instructions
Writing clock data
DATEWR(P)
Processing details
 • Writes clock data stored in the device number designated by (S) or later device number to the clock element of the CPU 
module.
 • Each item is set as a BIN value.
 • The "year" at (S) is designated by using four-digit year indication between 1980 to 2079.
 • (S)+1 designates the "month" in values of from 1 to 12 (January to December).
 • (S)+2 designates the "day" in values of from 1 to 31.
 • (S)+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.)
 • (S)+4 designates the "minute" in values of from 0 to 59.
 • (S)+5 designates the "second" in values of from 0 to 59.
 • (S)+6 designates the "day of week" in values of from 0 to 6 (Sunday to Saturday).
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.
(S):   Head number of the devices where clock data to be written into the clock device is stored (BIN 16 bits)
Setting 
data
Internal device
R, ZR
J\
U\G
Zn
Constant
Others
Bit
Word
Bit
Word
(S)
Day of week
Sun
Mon
Tue
Wed
Thu
Fri
Sat
Stored  data
0
1
2
3
4
5
6
Error 
code
Error details
Q00J/
Q00/
Q01
QnH
QnPH
QnPRH QnU
LCPU
4100
The value outside the setting range has been set for each item.
4101
The range of the device specified by (S) exceeds the range of the 
corresponding device.
Basic
Process
High
performance
Redundant Universal
LCPU
DATEWR
DATEWRP
Command
Command
DATEWR
DATEWRP
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