Rpbasic-52 programming guide, Time – Remote Processing BASIC 52 User Manual
Page 133

RPBASIC-52 PROGRAMMING GUIDE
2-114
TIME
(command)
Syntax:
TIME hours,minutes,seconds
Where: hours = 0 to 23
minutes = 0 to 59
seconds = 0 to 59
Function:
Sets the time to the real time clock
Mode:
Comm and, Run
Use:
TIME 18,17,00
Sets time to 6:17:00 PM
Cards:
All. Note consideration for RPC-320, RPC-330
D E S C R IP T I ON
Time uses a 24 hour format. Hundredths of a second are set to 0 when TIME is executed.
The RPC-320 and RP C-330 use an optional DS1216DM clock module. This module is shipped with the
clock off to conserve battery power. To turn the clock on, execute the D ATE com mand first. Failure to do so
causes a H ARD WA RE error. DA TE nee d only be done once to turn on the clock. Subseq uent change s to
TIME can be performed without using DATE. Refer to your hardware manual for installation location.
RELATED
TIME (function), DATE (comm and)
ERRORS
B A D A R G U M E N T When hours, minutes, or seconds is out of range
H A R D W A R E
Clock module is missing or not turned on. Error code 50 at address 101H