10 - 9
10. OTHER FUNCTIONS
(3) Writing clock data to the clock elements
(a) Use the following procedure to write clock data to the clock elements.
1) Writing from a peripheral device
2) Writing from a program
Clock data is written to the clock elements using the clock instruction
(DATEWR).
The following shows the example of the program.
For details on the DATEWR instruction, refer to the QCPU (Q mode)/
QnACPU Programming Manual (Common Instructions).
When using GPP function, clock data can be written to the clock elements
using the "Set clock" of the PLC menu in PLC diagnostics mode.
When using the Q6PU, clock data can be written to the clock elements by
using the clock monitor option in the monitor functions of the PLC system
in the other mode.
(For details on the operation for each peripheral device, refer to the
Operating Manual for each.)
POINT
(1) Clock data is not written to clock elements in advance. Write clock data to the
clock elements before using the QnACPU.
(2) Even if partly changing the clock data, rewrite all data to the clock elements.
(3) If the nonexistent time is written to the clock elements, normal clock operation
is impossible.
Example
Setting "13" to the month.
Setting "32" to the date.