Real Time Clock (RTC)
The 1310 Vehicle System Controller contains a battery backed-up real time clock. The clock
keeps accurate date and time for use by VCL (time stamping errors, clock display, timed events
etc). When first used, the RTC may need to be updated. If so, the RTC-Needs_Update variable
will be set. The Setup_RTC can be used to set the day and time.
If the RTC stops working, the battery may need to be replaced (should last several years). Open
the end cap (the one with the LED status window) by removing the 6 screws. Slide out the
button Lithium battery. Replace the battery and end cap. You will need to run a VCL program
to update the RTC time and day parameters. See the example following.
After it is set, the RTC will continuously updates the following variables;
• Hours_24 Actual Hour in 24h format (0...23)
• Hours_12 Actual Hour in 12h format (1...12)
• Am_Pm 0 => AM, 1 => PM
• Minutes Actual Minute (0...59)
• Seconds Actual Seconds (0...59)
• Day Actual Day (1...31)
• Month Actual Month (1...12)
• Year Year (00...99)
• Day_of_Week Actual Day of week (SUNDAY...SATURDAY)*
A few other variables of importance when using the RTC
• RTC_Needs_Update Set to 1 when the RTC has to be updated
• RTC_Disabled Set to 1 when RTC is disabled
* When setting up the RTC or reading the Day_of_Week variable, VCL must use the predefined
constants:
SATURDAY
SUNDAY
MONDAY
TUESDAY
WEDNESDAY
THURSDAY
FRIDAY
1310 Vehicle Control System Users Manual Release Rev B Page 37 of 51