7.15 Clock Instructions
7.15.1 Reading clock data
7-321
7
APPLI
C
A
T
IO
N
INSTRUCTIONS
DA
T
E
RD
DATERD
7.15
Clock Instructions
7.15.1
Reading clock data
DATERD
Function
(1) Reads year, month, day, minute, second, and day of week from the clock element of the
CPU module and stores them to BIN value in
and the following devices.
(2) The year in
is stored as 4-digit year indication.
DATERD(P)
P: Executing condition
:
indicates any of the following
instructions.
DATERD
DATERDP
Input argument,
EN:
Executing condition
:Bit
Output argument,
ENO:
Execution result
:Bit
d:
Clock data that are read
:Array of ANY16 (0..6)
Setting
data
Internal device
R, ZR
J
\
U
\G
Zn
Constant
Others
Bit
Word
Bit
Word
−
−
Universal
UD
High
Performance
Structured ladder
ST
D
ATER
D
EN
ENO
d
D
ATER
D
(EN, d);
ENO:=
d
d
Year
M
onth
Da
y
[
1
]
[
0
]
[
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
(2
4-hour cloc
k)
M
inute
S
econ
d
Da
y
of
w
ee
k
C
loc
k
element
d
d
d
d
d
d
d
d
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: ......