:
Option Modules
CNC 61.00 Hardware Description CNC 0610510/12 77
10.1.6 Battery-buffered RAM and Real-Time Clock
This module provides the user with a RAM of 128 kByte that may be used for the
user-specific management. This area is battery-buffered which means the data will
not get lost when the supply voltage is turned off. Additionally, this option includes a
real-time clock (RTC) that of course keeps running after turning off the supply volt-
age.
Software (Example)
X Access to time/date:
The two system variables TIME/DATE are provided for the user for reading in
the actual time and date.
SET TIME, NA; transmits the actual time into the accumulator
Format: (hours × 65536) + (minutes × 256) + seconds = numerical accumulator
SET DATE, NA; transmits the actual date into the accumulator
Format: (year × 65536) + (month × 256) + day = numerical accumulator
X Access to the battery-buffered RAM:
TBL4: access byte by
byte
(8 bits)
TBL5: access word by
word
(16 bits)
TBL6: access to a long
word
(32 bits)
TBL7: access to a true
value
(64 bits)
SET NA,
TBL5[0]
;writes the content of the numerical accumu-
lator
;into the field with index 0 of the
;word-oriented table 5 (16 bits)