45
UBI EasyCoder 301 Direct Protocol – Programmer's Guide Ed. 1
Chapter 6 Setting Up the Printer
The printer's CPU board is, as standard, provided with an internal
clock/calendar without battery backup, i.e. the setting will be lost
when the printer is turned off.
The CPU board may optionally be fitted with a real-time clock cir-
cuit (RTC). The RTC is battery backed-up and will keep running
even when the printer is turned off.
If no RTC is installed and you try the read the date or time before
the internal clock has been set, an error will occur (error 1010 “Hard-
ware Error”). Once either time or date has been set, the internal
clock will work until next power off or reboot. If only time has been
set, by default the current date will be Jan 01 1980 and if only date
has been set, by default the clock will start running at 00:00:00.
The following commands are used to set the clock/calendar:
DATE$ = "<YYMMDD>"
<YYMMDD>
the current date in the standard format, where
YY = Year, last two digits
MM = Month, two digits
DD = Day, two digits.
Note that the input data must be enclosed by double quotation marks.
Example:
DATE$ = "970601"
↵
TIME$ = "<HHMMSS>"
<HHMMSS>
the current time in the standard format, where
HH = Hour (00–24)
MM = Minute (00–59)
SS = Second (00–59)
Note that the input data must be enclosed by double quotation marks.
Example:
TIME$ = "131548"
↵
3. Date and Time