Mitsubishi Electric melsec q00ujcpu User Manual page 166

Programmable controller
Hide thumbs Also See for melsec q00ujcpu:
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)
shows a program for storing the clock data read with the DATERD instruction to D10 to
Figure 6.13
D16.
Read request
X1
Figure 6.13 Program example for storing clock data
D10
D11
D12
D13
D14
D15
D16
For details of the DATERD and S(P).DATERD instructions, refer to the following.
QCPU Programming Manual (Common Instructions)
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 CHAPTER 12.
DATERD
D10
*1: Figure 6.14 shows the clock data stored in D10 to D16.
Year (four digits)
2004
4
Month
1
Date
11
Hour
35
Minute
24
Second
2
Day of the week
Figure 6.14 Clock data stored
CHAPTER6 FUNCTIONS
Stores clock data to D10
*1
to D16.
(
(3) in this section)
1
2
3
4
5
6
7
8
6 - 15

Advertisement

Table of Contents
loading

Table of Contents