Programming instructions
Intermec Fingerprint v7.61 – Programmer’s Reference Manual Ed. 7 201
Chapter 2 Program Instructions
PRINT#
Field of Application
Statement for printing data to a specified OPENed device or
sequential fi le.
Syntax PRINT#<nexp
1
>[,<<nexp
2
>|<sexp
1
>>[<,|;><<nexp
3
>|<sexp
2
>>...][;]]
<nexp
1
> is the number assigned to the fi le or device when it was
OPENed.
<<nexp
2-n
>|<sexp
1-n
>> are the string or numeric expressions, which will be printed
to the specifi ed fi le or device.
Remarks
Expressions can be separated by commas or semicolons according to the
same rules as for the PRINT statement. It is important that the expressions are
separated properly, so they can be read back when needed, or be presented
correctly on the printer’s LCD display.
PRINT# can only be used to print to sequential fi les, not to random fi les.
When sending data to the printer’s display ("console:"), PRINT# will
work same way as PRINT does on the standard OUT channel. The display
can for example be cleared by sending PRINT#<nexp> twice (see line
20 in the example below).
Example
The display on the printer’s keyboard console is able to show two lines with
16 characters each. Before sending any text, the device must be OPENed
(line 10) and both lines on the display must be cleared (line 20). Note the
trailing semicolon on line 40!
10 OPEN "console:" FOR OUTPUT AS #1
20 PRINT# 1:PRINT# 1
30 PRINT# 1,"OUT OF LABELS"
40 PRINT# 1,"PLEASE RELOAD!";
50 CLOSE# 1
RUN
Since the last line was appended by a semicolon, there will be no carriage
return and the text will appear on both line on the printer’s display as:
OUT OF LABELS
PLEASE RELOAD!
An alternative method is to send all the data to the display in a single
PRINT# statement. Character No. 1-16 will be displayed on the upper
line and character No. 17-33 will be displayed on the lower line, whereas
character No. 17 will be ignored. Note the trailing semicolon on line 30! (The
double-headed arrows in line 30 represent space characters.)
10 OPEN "console:" FOR OUTPUT AS #1
20 PRINT# 1: PRINT# 1
30 PRINT# 1,"OUT
↔
OF
↔
LABELS
↔↔↔↔
PLEASE
↔
RELOAD!";
40 CLOSE# 1
RUN