Calendar/clock chapter 7 – Remote Processing RPC-30 User Manual
Page 28

CALENDAR/CLOCK
CHAPTER 7
Page 26
RPC-30
DESCRIPTION
The RPC-30 has a built in battery backed
Calendar/ clock. When used in conjunction with the
DAT E$ and TIM E$ comm ands, the curr ent date and
time can be set and read.
The life of the battery depends upon the power
consumption of RAM in U10. Generally, you can
expect a battery life of 5 to 10 year s.
The cloc k chip, U17, contains a built in cr ystal.
Accuracy is about 1 minute/month and is not adjustable.
Refer to the CAM BASIC Pr ogramm ing Manual for
more specific comm and information.
SETTING DATE AND TIME
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. T o set the date and time:
date$="03-11-93"
time$="13:56:00"
T o r et r ie v e d a te a nd ti m e a s pa r t o f a p r o gr a m :
2000 DA$ = DATE$(0)
2010 TI$ = TIME$(0)
You can also print the d ate and time in the imm ediate
mode:
pr time$(0)
13:56:03
The clock is turned on and off and set for 12/24 hour
mode us ing the CO NF IG CL OCK statement.
COMMANDS
The following is a list of CAMBASIC com mands for the
calendar/clock.
Comm and
Function
C O N F I G C L OC K
Configures clock
DATE$
Sets date
DAT E$(0)
Return s date
TIME$
S e ts ti m e
TIME $(0)
R e tu r n s t im e