Mitsubishi Electric MELSEC-Q00U(J)CPU User Manual page 131

Table of Contents

Advertisement

(b) Reading clock data
To read clock data to the data register, use either of the following instructions in the program.
• DATERD (instruction for reading clock data)
• S(P).DATERD (instruction for reading extended clock data)
The following figure shows a program for storing clock data that are read using the DATERD instruction to D10
to D16.
Read request
X1
*1
The following figure shows the clock data stored in D10 to D16.
D10
D11
D12
D13
D14
D15
D16
For details of the DATERD and S(P).DATERD instructions, refer to the following.
MELSEC-Q/L Programming Manual (Common Instruction)
Clock data can also be written or read by the special relay (SM210 to SM213) and special register (SD210 to SD213). For
details of the special relay and special register, refer to the following.
QCPU User's Manual (Hardware Design, Maintenance and Inspection).
DATERD
D10
Year (four digits)
2004
4
Month
1
Date
(
11
Hour
35
Minute
24
Second
2
Day of the week
CHAPTER 3 FUNCTIONS
Stores clock data to D10
*1
to D16.
Page 127, Section 3.5 (2))
3
129

Advertisement

Table of Contents
loading

Table of Contents