7-322
7.15 Clock Instructions
7.15.1 Reading clock data
DATERD
(3) The day of week in
+6 is stored as 0 to 6 to represent the days from Sunday to Saturday.
(4) Compensation is made automatically for leap years.
O
peration Error
In the following case, an operation error occurs, the error flag (SM0) is turned ON, and the
corresponding error code is stored to SD0.
• The device specified for
exceeds the corresponding device range. (For Universal
model QCPU only)
(Error code: 4101)
Program Example
In the following program, the following clock data are output in BCD values.
Year ..........Y70 to Y7F
Month........Y68 to Y6F
Day ...........Y60 to Y67
Hour..........Y58 to Y5F
Minute.......Y50 to Y57
Second .....Y48 to Y4F
Week ........Y44 to Y47
[Structured ladder]
Day of week
Sun Mon
Tue Wed Thu
Fri
Sat
Stored data
0
1
2
3
4
5
6
d
d
Содержание MELSEC Q Series
Страница 1: ...Structured Programming Manual Mitsubishi Programmable Controller QCPU Common Instructions ...
Страница 2: ......
Страница 14: ...A 12 MEMO ...
Страница 340: ...6 178 MEMO MTR ...
Страница 708: ...7 368 MEMO ...
Страница 776: ...8 68 MEMO ...
Страница 796: ...9 20 MEMO ...
Страница 804: ...App 8 MEMO ...
Страница 812: ...Index 8 MEMO ...
Страница 815: ......