
181
CHAPTER 3 CPU MODULE FUNCTIONS
3
3.
31
C
loc
k F
unc
tion
(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. (
MELSEC-Q/L Programming Manual (Common Instruction))
• 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.
Example
Write operation to the CPU
module
CPU module operation
February 30
Performed
No error is detected.
Day 32 of month 13
Not performed
• Upon DATEWR instruction: "OPERATION ERROR" (error code: 4100)
• Upon turn-on of SM210: SM211 (Clock data error) turns on
Summary of Contents for L02CPU
Page 1: ......
Page 2: ......
Page 13: ...11 Memo ...
Page 78: ...76 Memo ...
Page 226: ...224 Memo ...
Page 318: ...316 To the next page ...
Page 320: ...318 To the next page ...
Page 322: ...320 To the next page ...
Page 324: ...322 To the next page ...
Page 326: ...324 To the next page ...
Page 335: ...333 Memo ...
Page 339: ......