Specifications

Curtis 1310 Manual, Rev. B
37
1 6 F E B R U A R Y 2 0 0 8 D R A F T
5 — VCL
Real-Time Clock (RTC)
The 1310 controller contains a real-time clock with battery backup. 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 function can be used to
set the day and time.
If the RTC stops working, the battery may need to be replaced; it should
last for many years. Open the end cap (the one with the LED status window) by
removing the six 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 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 (MONDAY...SUNDAY).*
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:
MONDAY
TUESDAY
WEDNESDAY
THURSDAY
FRIDAY
SATURDAY
SUNDAY