7-324
7.15 Clock Instructions
7.15.2 Writing clock data
DATEWR
7.15.2
Writing clock data
DATEWR
Function
(1) Writes clock data stored in
and the following devices to the clock element of the CPU
module.
(2) Each item is set in BIN value.
(3) The year in
is specified by using 4-digit year indication between 1980 to 2079.
(If a particular era name is used for year settings, leap years cannot be automatically
adjusted.)
(4)
+1 specifies the month in values from 1 to 12 (January to December).
DATEWR(P)
P: Executing condition
:
indicates any of the following
instructions.
DATEWR
DATEWRP
Input argument,
EN:
Executing condition
:Bit
s:
Clock data to be written to clock element
:Array of ANY16 (0..6)
Output argument,
ENO:
Execution result
:Bit
Setting
data
Internal device
R, ZR
J
\
U
\G
Zn
Constant
Others
Bit
Word
Bit
Word
−
−
Universal
UD
High
Performance
Structured ladder
ST
D
ATEWR
EN
ENO
s
D
ATEWR
(EN,
s
);
ENO:=
s
s
[
1
]
[
0
]
[
2
]
[
3
]
[4]
[
5
]
[
6
]
s
s
s
s
s
s
s
Year
M
onth
Da
y
Hour
M
inute
S
econ
d
Da
y
of
w
ee
k
C
loc
k
element
s
s
Summary of Contents for MELSEC Q Series
Page 1: ...Structured Programming Manual Mitsubishi Programmable Controller QCPU Common Instructions ...
Page 2: ......
Page 14: ...A 12 MEMO ...
Page 340: ...6 178 MEMO MTR ...
Page 708: ...7 368 MEMO ...
Page 776: ...8 68 MEMO ...
Page 796: ...9 20 MEMO ...
Page 804: ...App 8 MEMO ...
Page 812: ...Index 8 MEMO ...
Page 815: ......