Mitsubishi 00JCPU User Manual page 196

Q series programmable controller
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)
Figure 6.12 shows a program for storing the clock data read with the DATERD instruction to D10 to 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)
6 - 16
Read request
X1
DATERD
Figure 6.12 Program example for storing clock data
*1: Figure 6.13 shows the clock data stored in D10 to D16.
D10
2004
D11
4
D12
1
D13
11
D14
35
D15
24
D16
2
Figure 6.13 Clock data stored
Stores clock data to D10
D10
to D16.
*1
Year (four digits)
Month
Date
(
(3) in this section)
Hour
Minute
Second
Day of the week

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents