Mitsubishi Q00JCPU User Manual page 319

Hide thumbs Also See for Q00JCPU:
Table of Contents

Advertisement

6
FUNCTIONS
(4) Changing and reading the clock data
(a) Changing the clock data
POINT
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.
2) Method to Write from the Program
When using a program, change the clock data with the clock data write
instruction (DATEWR).
Figure 6.12 shows a program for writing the set clock data to D0 to D6 with the
clock data write instruction (DATEWR).
Write request
X0
0
Figure 6.12 Program example of writing clock data
Refer to the following manual for details of the DATEWR instruction.
Q QCPU (Q Mode)/QnACPU Programming Manual (Common
Instructions)
1. When the clock data is changed with GX Developer or program, the clock of 1/
1000 sec. is reset to 0.
2. Year data can be set up to 2037 in the clock data on GX Developer.
[Set time] to display the clock
Figure 6.11 Set time screen
MOVP K1999
DO
MOVP
K8
D1
K10
MOVP
D2
MOVP
K11
D3
MOVP
K35
D4
MOVP
K24
D5
MOVP
K2
D6
DATEWR
DO
6.5 Clock Function
Year 1999
Month 8
Day 10
Hour 11
Minute 35
Second 24
Day Tuesday: 2
6
- 19
1
2
3
4
5
6
7
8

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents