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.

PRINT#<br />

Chapter 2 Program Instructions<br />

Field of Application Statement for printing data to a specified OPENed device or sequential<br />

file.<br />

Syntax PRINT#[,[...][;]]<br />

1 2 1 3 2<br />

1 is the number assigned to the file or device when it was<br />

OPENed.<br />

2-n 1-n are the string or numeric expressions, which will be printed<br />

to the specified file or device.<br />

Remarks Expressions can be separated by commas or semicolons according to the<br />

same rules as for the PRINT statement. It is important that the expressions are<br />

separated properly, so they can be read back when needed, or be presented<br />

correctly on the printer's LCD display.<br />

PRINT# can only be used to print to sequential files, not to random files.<br />

When sending data to the printer's display ("console:"), PRINT# will work<br />

same way as PRINT does on the standard OUT channel. The display can e.g.<br />

be cleared by sending PRINT# twice (see line 20 in the example<br />

below).<br />

Example The display on the printer's keyboard console is able to show two lines with<br />

16 characters each. Before sending any text, the device must be OPENed (line<br />

10) and both lines on the display must be cleared (line 20). Note the trailing<br />

semicolon on line 40!<br />

10 OPEN "CONSOLE:" FOR OUTPUT AS #1<br />

20 PRINT# 1:PRINT# 1<br />

30 PRINT# 1, "OUT OF LABELS"<br />

40 PRINT# 1, "PLEASE RELOAD!";<br />

50 CLOSE# 1<br />

RUN<br />

Since the last line was appended by a semicolon, there will be no carriage<br />

return and the text will appear on both line on the printer's display as:<br />

OUT OF LABELS<br />

PLEASE RELOAD!<br />

An alternative method is to send all the data to the display in a single PRINT#<br />

statement. Character No. 1-16 will be displayed on the upper line and<br />

character No. 17–33 will be displayed on the lower line, whereas character<br />

No. 17 will be ignored. Note the trailing semicolon on line 30! (The<br />

underscore characters in line 30 represent space characters).<br />

10 OPEN "CONSOLE:" FOR OUTPUT AS #1<br />

20 PRINT# 1: PRINT# 1<br />

30 PRINT# 1,"OUT_OF_LABELS____PLEASE_RELOAD!";<br />

40 CLOSE# 1<br />

RUN<br />

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

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

Saved successfully!

Ooh no, something went wrong!