Mitsubishi L02CPU User Manual page 183

Melsec-l series
Hide thumbs Also See for L02CPU:
Table of Contents

Advertisement

(c) SM and SD
Store clock data in SD210 to SD213. After the END processing for the scan where SM210 (Clock data set
request) were turned on from off, write the values stored in SD210 to SD213 to the CPU module.
(d) Program
Use an instruction to write clock data (DATEWR).
MELSEC-Q/L Programming Manual (Common Instruction)
● After changing clock data, a 1/1000 is reset to 0.
● Year data that can be set with GX Works2 is up to 2037.
(3) Clock data read
To read clock data, use either of the following.
• Program
• SM and SD
(a) Program
Use either of the following instructions. (
• Clock data read (DATERD)
• Expansion clock data read (S(P).DATERD)
(b) SM and SD
The data are read out into SD210 to SD213 in a BCD value when SM213 (clock data read request) is turned
on.
(4) Precautions
(a) Initial clock data setting
Set the correct clock data because it has not been set when shipping.
(b) Correcting clock data
Whenever any part of the clock data are changed, the entire clock data must be written to the CPU module
again.
(c) Clock data range
When changing clock data, write data within the range given (3) in this section. If data outside the clock range
is written to the CPU module, the clock function does not operate correctly. However, errors do not occur if the
value is within the following range.
Write operation to the CPU
Example
February 30
Day 32 of month 13
module
Performed
No error is detected.
• Upon DATEWR instruction: "OPERATION ERROR" (error code: 4100)
Not performed
• Upon turn-on of SM210: SM211 (Clock data error) turns on
CHAPTER 3 CPU MODULE FUNCTIONS
MELSEC-Q/L Programming Manual (Common Instruction))
CPU module operation
3
181

Advertisement

Table of Contents
loading

This manual is also suitable for:

L26cpu-bt

Table of Contents