Chapter 5. Power Supply / CPU
5-43
2) Using F/B (RTC_SET)
By executing a F/B(RTC_SET), user can replace the current RTC data with the preset data stored in a specified variable. The
following is an example program.
Example) The preset RTC data: 1999. 1. 17. 11:53:24, Sunday
When the ‘TIME_PRESET’ bit is switched on, the new data in ‘SET_TIME’ will be moved to ‘_RTC_TIME’.
* SET_TIME variable setting
z F/B Error code
The following table shows error codes appear at the STAT output.
Error code Description
00 No error
01 RTC Module is not found
* Insert the RTC module into the expansion connector
02
A improper RTC data is written. Ex) 14(Month) 32(Date) 25(Hour)
* Please write a correct RTC data