• No results found

PRBOX (PX) STATEMENT Field of Application Creating a box.

Syntax PRBOX|PX<nexp1>,<nexp2>,<nexp3>

<nexp1> is the height of the box in dots (max. 6000). <nexp2> is the width of the box in dots (max. 6000). <nexp3> is the line weight in dots (max. 6000).

Remarks A box will be drawn with its anchor point (see ALIGN) at the insertion point, as specified by the nearest preceding PRPOS statement. A box can be aligned left, right or centre along its baseline.

The print direction specifies how the box is rotated in relation to its anchor point. The baseline is in parallel with text lines in the selected print direction. The height of the box goes the same way as the height of characters and bar codes in the selected print direction.

The line weight (i.e. the thickness of the line) grows inward from the anchor point, i.e. the heavier the line, the less white area inside the box. Thus, it is possible to create a black field using a box with very heavy lines. The white area inside a box can be used for printing. Boxes, lines and text may cross.

Example This examples draws a rectangle:

10 PRPOS 50,50

20 PRBOX 100, 200, 3

30 PRINTFEED

RUN

Left: Right:

172

PRIMAGE (PM)

STATEMENT

Field of Application Selecting an image stored in the printer's memory.

Syntax PRIMAGE|PM<sexp>

<sexp> is the full name of the desired image including extension. Max. 60 different images can be used.

Remarks An image is positioned according to the preceding PRPOS, DIR and ALIGN

statements. It is magnified according to the currently valid MAG statement, if any.

All images provided by Intermec have an extension which indicates for which directions the image is intended:

• Extension .1 indicates print directions 1 & 3. • Extension .2 indicates print directions 2 & 4.

Even if the Intermec Fingerprint firmware does not require such an exten- sion, we strongly recommend you to follow the same convention when creating your own images as to make it easier to select the currect image. The firmware will start searching for the specified image in the printer's memory. If the image is not found there, the current directory (see CHDIR

statement) will be searched for an image file with the same name. If such a file is found, it will be copied and used as an image. If there is not enough memory left to hold the copy, copies of old image files will be deleted until a sufficient amount of memory becomes available.

Example This example illustrates the printing of a label containing an image upside down and magnified 2x:

10 PRPOS 200,200 20 DIR 3 30 ALIGN 5 40 MAG 2,2 50 PRIMAGE "GLOBE.1" 60 PRINTFEED RUN

Do not confuse this statement with the PRINTFEED statement.

PRINT (?)

STATEMENT

Field of Application Printing of data to the standard OUT channel.

Syntax PRINT|?[<<nexp>|<sexp>>[<,|;><<nexp>|<sexp>>...][;]]

<<nexp>|<sexp>> are string or numeric expressions, which will be printed to the standard OUT channel.

Remarks If no expressions are specified after the PRINT statement, it will yield a blank line. If one or more expressions are listed, the expression(s) will be processed and the resulting values will be presented on standard OUT channel (see

SETSTDIO statement), e.g. usually on the screen of the host. The shorthand form of PRINT is a question mark (?).

Each line is divided into zones of 10 character positions each. These zones can be used for positioning the values:

• A comma sign (,) between the expressions causes next value to be printed at the beginning of next zone.

• A semicolon sign (;) between the expressions causes next value to be printed immediately after the last value.

• A plus sign (+) between two string expressions also causes next value to be printed immediately after the last value. (Plus signs cannot be used between numeric expressions).

• If the list of expressions is terminated by a semicolon, the next PRINT

statement will be added on the same line. Otherwise, a carriage return is performed at the end of the line. If the printed line is wider than the screen, the firmware will automatically wrap to a new line and go on printing. Printed numbers are always followed by a space character.

Printed negative numbers are preceded by a minus sign (-).

Example 10 LET X%=10 20 LET A$="A" 30 PRINT X%;X%+1,X%+5;X%-25 40 PRINT A$+A$;A$,A$ 50 PRINT X%; 60 ? "PIECES" RUN yields: 10 11 15 -15 AAA A 10 PIECES

174

PRINT KEY ON/OFF

STATEMENT

Field of Application Enabling or disabling printing of a label by pressing the Print key.

Syntax PRINT KEY ON|OFF

Default: PRINT KEY OFF

Remarks All Intermec Fingerprint-compatible printers are provided with at least one “Print” button or key. In the Immediate Mode and in the Intermec Direct Protocol, this key can be enabled to issue printing commands, corresponding to PRINTFEED statements. This implies that each time the < Print > key is pressed, one single label, ticket, tag or portion of strip will be printed and fed out.

Note that this cannot be entered in the Programming Mode (use KEY ON and

ON KEY GOSUB statements instead).

Example This example shows how the Print key is enabled in the Intermec Direct Protocol and a label is printed (abbreviated instructions are used when available): INPUT ON ↵ PRINT KEY ON ↵ PP 100,100 ↵ FT "SW030RSN" ↵ PT "TEST LABEL" ↵

<Press Print Key>

PRINT#

STATEMENT

Related documents