1004
7 APPLICATION INSTRUCTIONS
7.25 Clock Instructions
• These instructions write the clock data stored in the device specified by (s) and later to the clock element of the CPU
module.
• Set each data in binary.
• Set the year data in the range from 1980 to 2079 in the device specified by (s).
• Set the month data in the range from 1 to 12 in the device specified by (s)+1.
• Set the day data in the range from 1 to 31 in the device specified by (s)+2.
• Set the hour data in the range from 0 to 23 in the device specified by (s)+3. (Set in 24-hour format.)
• Set the minute data in the range from 0 to 59 in the device specified by (s)+4.
• Set the second data in the range from 0 to 59 in the device specified by (s)+5.
• Set the day of week in the range from 0 to 6 corresponding to Sunday to Saturday in the device specified by (s)+6.
When clock data is changed, "clock setting" (event code: 24000) is saved to the event history. That is, "clock
setting" is saved to the event history when this instruction is executed.
(Data) (d) (d)+1 (d)+2 (d)+3 (d)+4 (d)+5 (d)+6
(Clock
element)
Year Month Day Hour Minute Second Day of week
(Setting range) 1980 to 2079 1 to 12 1 to 31 0 to 23 0 to 59 0 to 59 0 to 6
Day of week Day Month Tuesday Wednesday Thursday Friday Saturday
Stored data 0123456
Error code
(SD0)
Description
3405H The data in the device specified (s) is out of range.
3425H A time value less than an hour from the start time of the daylight-saving time is set in (s) to (s)+6.