Mitsubishi Q00JCPU User Manual page 257

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

Advertisement

6
FUNCTIONS
(4) Changing and reading the clock data
(a) Changing the clock data
The clock data can be changed either by GX Developer or program.
1) Method to write from GX Developer
When using GX Developer, choose [Online]
setting window, and change the clock data.
Diagram 6.10 Clock data write from GX Developer
2) Method to Write from the Program
When using a program, change the clock data with the clock data write
instruction (DATEWR).
Diagram 6.11 shows a program for writing the set clock data to D0 to D6 with
the clock data write instruction (DATEWR).
Write request
X0
0
Diagram 6.11 Clock data write from sequence program
Refer to the following manual for details of the DATEWR instruction.
Q QCPU (Q Mode)/QnACPU Programming Manual (Common
Instructions)
[Set time] to display the clock
MOVP K1999
DO
MOVP
K8
D1
K10
MOVP
D2
MOVP
K11
D3
MOVP
K35
D4
MOVP
K24
D5
MOVP
K2
D6
Day Tuesday: 2
DATEWR
DO
6.5 Clock Function
1
2
3
4
5
Year 1999
Month 8
Day 10
Hour 11
6
Minute 35
Second 24
7
8
6
- 16

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents