17.08.2013 Views

Contents, cont'd. - Intermec

Contents, cont'd. - Intermec

Contents, cont'd. - Intermec

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

TIME$<br />

Field of Application Variable for setting or returning the current time.<br />

Syntax Setting the time: TIME$=<br />

Chapter 2 Program Instructions<br />

sets the current time by a 6-digit number specifying Hour,<br />

Minute and Second.<br />

Reading the time: =TIME$[()]<br />

returns the current time according to the printer's clock.<br />

is an optional flag "F", indicating that the time will be returned<br />

according to the format specified by FORMAT TIME$.<br />

Remarks This variable works best if a real-time clock circuit (RTC) is fitted on the<br />

printer's CPU board. The RTC is battery backed-up and will keep record of<br />

the time even if the power is turned off or lost.<br />

If no RTC is installed, the internal clock will be used. After startup, an error<br />

will occur when trying to read the date or time before the internal clock has<br />

been manually set by means of either a DATE$ or a TIME$ variable. If only<br />

the date is set, the internal clock starts at 00:00:00 and if only the time is set,<br />

the internal clock starts at Jan 01 1980. After setting the internal clock, you<br />

can use the DATE$ and TIME$ variables the same way as when an RTC is<br />

fitted, until a power off or REBOOT causes the date and time values to be lost.<br />

The time is always entered and, by default, returned in the following order<br />

HHMMSS, where:<br />

HH = Hour Two digits (00–23)<br />

MM = Minute Two digits (00–59)<br />

SS = Second Two digits (00–59)<br />

Time is entered as a 24-hour cycle, e.g. 8 o'clock pm is entered as "200000".<br />

The clock will be reset at the exact moment, when the appending carriage<br />

return character is received, e.g. when you press the Return key (Immediate<br />

Mode and <strong>Intermec</strong> Direct Protocol), or when the instruction is executed<br />

(Programming Mode).<br />

The format for how the printer will return time from a TIME$("F") variable<br />

can be changed by means of a FORMAT TIME$ statement.<br />

Example Setting and reading the time, then printing it on the screen of the host:<br />

10 TIME$ = "154300"<br />

20 FORMAT TIME$ "HH.MM"<br />

30 PRINT "Time_is_"+TIME$("F")<br />

RUN<br />

yields:<br />

Time_is_15.43<br />

<strong>Intermec</strong> Fingerprint 7.2 – Reference Manual Ed. 3 229

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!