
CHAPTER 7 CALENDAR/CLOCK
RPC-2300 Page 21
Figure 7-1 Calendar/clock installation
DESCRIPTION
The SBS-2300 has a battery backed Calendar/clock
option using the DS-1216EM. When used in conjunction
with the DATE $ and TIM E$ com mands, the curr ent date
and time can be set and r ead. The D S-1216EM is
accurate to 1 minute/month at 25°C. Battery life is a
minimum of 5 years.
INSTALLATION
The real time clock is installed in socket U3. Remove
the IC in U3. Install the DS-1216EM in U3. Install the
IC previously removed on top of the DS-1216EM.
SETTING DATE AND TIME
The clock must be turned on before it is used. This need
be done only once. To turn on the clock, type:
CONFIG CLOCK ON
The date and time can be set while running a program or
in the immediate mode. Date and time are treated as
strings and not numbers. To set the date and time:
date$="08-18-94"
time$="13:56:00"
To retrieve date and time as part of a program:
2000 DA$ = DATE$(0)
2010 TI$ = TIME$(0)
You can also print the date and time in the immediate
mode:
pr time$(0)
13:56:03
COMMANDS
The following is a list of CAMBASIC II commands for
the calendar/clock.
Command Function
DATE$ Sets date
DATE$(0) Returns date
TIME$ Sets time
TIME$(0) Returns time
Komentáře k této Příručce