Mitsubishi Q00JCPU User Manual page 258

Q series, logic
Hide thumbs Also See for Q00JCPU:
Table of Contents

Advertisement

6
FUNCTIONS
6
6.5 Clock Function
- 17
(b) Reading Time Data
When reading the time data to the data register, use the time data read instruction
(DATERD) from the program.
The figure below shows an example of a program used to read the clock data with
the DATERD instruction and then store it in D10 to D16.
Read request
X1
* : Diagram 6.13 shows the clock data stored in D10 to 16.
D10
D11
D12
D13
D14
D15
D16
Refer to the following manual for details of the DATERD instruction.
Q QCPU (Q Mode)/QnACPU Programming Manual (Common Instructions)
POINT
Time Data can be written to and read from by special relays (SM210 to SM213)
and special registers (SD210 to SD213).
See Appendix 1 for details on special relay. See Appendix 2 for details on special
registers.
DATERD
D10
Diagram 6.12 Program that stores clock data
2004
4 digits in AD
4
Month
1
Date
11
Hour
35
Minute
24
Second
2
Day of the week
Diagram 6.13 Clock data read
The time data is read and
then stored in D10 to 16.
(
(3) in this section)

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents