Real time clock, Reading the date/time – Maple Systems MAPware-7000 User Manual
Page 274

274
MAPware-7000 Programming Manual
1010-1040, Rev. 02
Initialize keep memory area after download- if checked, the designated Keep Memory
Areas are set to 0 after download is completed. If not checked, the values in the Keep
Memory Areas are retained.
Initialize all device registers except keep memory after download- if checked, the entire
internal tag registers (i.e. D, X, XW, C, T, etc.) memory of the HMC7000 are set to 0 after
download except for any registers designated as Keep Memory. Note: this memory area
is automatically set to 0 if power is removed from the HMC unit. If not checked, values
in these areas are retained, unless power is removed.
Real Time Clock
The internal battery powers the real-time clock (RTC) when the HMC is not powered by external
24VDC. Normally, the internal battery should be able to provide power to the RTC for
approximately 20 years (@25°C).
Reading the Date/Time
The Clock objects (Time and Date) are used to display the date and time on an HMC screen.
Each field of the RTC data can also be read and individually displayed on screen by using the
designated system word registers (SW10 thru SW16) in the tag database.
Other reserved registers that pertain to the clock are:
Tag No.
Tag Name
Tag Address
Description
Access
42
RTC day of month
SW0010
Ex: 1-31, Unsigned format
Read Only
43
RTC month
SW0011
Ex: 1-12, Unsigned format
Read Only
44
RTC year
SW0012
Ex: 0-99, Unsigned format
Read Only
45
RTC hour
SW0013
Ex: 0-23, Unsigned format
Read Only
46
RTC min
SW0014
Ex: 0-59, Unsigned format
Read Only
47
RTC sec
SW0015
Ex: 0-59, Unsigned format
Read Only
48
RTC day of week
SW0016
Ex: 1-7, Unsigned format
Read Only