Programming instructions
106
Intermec Fingerprint 6.13 – Programmer's Guide
10. LABEL DESIGN, cont'd.
1. Creating a Layout,
cont'd.
Layout Files
In addition to the method described above, there is an alternative
method using files for specifying the various fields and their input
data separately (see chapter 10.7). However, the various parameters
of the layout file are based on the same principles as described in
chapters 10.1 – 10.6.
Checking Current Position
After having positioned and specified an object, you can find out the
current position of the insertion point by means of a PRSTAT
function. This implies that after having e.g. entered a line of text,
you can find out how long it will be and where any new object will
be placed unless a new position is specified.
• In print direction 1 or 3, PRSTAT (1) returns the absolute value
of the insertion point along the X-axis, whereas PRSTAT (2)
returns the Y-value of the last executed PRPOS statement.
• In print direction 2 or 4, PRSTAT (2) returns the absolute value
of the insertion point along the Y-axis, whereas PRSTAT (1)
returns the X-value of the last executed PRPOS statement.
Example:
An unknown number of logotypes will be printed with 10 dots
spacing across the paper web. The size of the logotype is not known.
To avoid an “field out of label” error, a limitation in regard of
paper width is included (line 80, change if necessary).
10 PRPOS 0,50
20 PRIMAGE "GLOBE.1"
30 X%=PRSTAT(1)
40 FOR A%=1 TO 10
50 Z%=PRSTAT(1)
60 PRPOS Z%+10,50
70 PRIMAGE "GLOBE.1"
80 IF Z%>550 THEN GOTO 100
90 NEXT
100 PRINTFEED
110 END
RUN
Note:
The PRSTAT function can also be used for checking the printer's
status in regard of a number of conditions, see chapter 16.3.