6F3B0253
6. Programming Information
6.3 Real-time clock/calendar (Enhanced model only)
The
These data are stored in the special registers SW07 to SW13 by
Register | Function | Data |
SW07 | Year | 1999 = H0099, 2000 = H0000, 2001 = H0001, 2002 = H0002 ... |
SW08 | Month | Jan. = H0001, Feb. = H0002, Mar. = H0003, ... Dec. = H0012 |
SW09 | Day | 1st = H0001, 2nd = H0002, 3rd = H0003, ... 31st = H0031 |
SW10 | Hour | H0000, H0001, H0002, ... H0022, H0023 |
SW11 | Minute | H0000, H0001, H0002, ... H0058, H0059 |
SW12 | Second | H0000, H0001, H0002, ... H0058, H0059 |
SW13 | Week | Sun. = H0000, Mon. = H0001, Tue. = H0002, ... Sat. = H0006 |
Program example:
In the following circuit, output Y030 turns ON for 1 minute at every Sunday 6 pm.
(H0018)
Clock/calendar back up:
The clock/calendar continues updating even while the power to the
Environment | Expected value | Guarantee value | ||
temperature | Capacitor | Battery | Capacitor | Battery |
Under 30 °C (86 °F) | 2 hours | 2 year | 1 hours | 1 year |
Over 30 °C (86 °F) | 1 hours | 1 year | 30 minutes | 6 months |
As shown in the table, it is recommended to use the optional battery when the real- time clock/calendar function is used.
In the
Setting the clock/calendar:
To set the clock/calendar data, the following 2 ways are available. In both cases, the week data is automatically calculated.
(1)Setting the clock/calendar data on the system information screen of the programming tool.
(2)Using the Calendar Set instruction (CLND) in the user program.
88