16
UBI EasyCoder 301 Direct Protocol – Programmer's Guide Ed. 1
Chapter 4 Label Design
Origin
The positioning of all printable objects on the label, i.e. text fields,
bar code fields, images, boxes, and lines, uses a common system.
The starting point (called the origin) is the point on the paper that
corresponds to the innermost active dot on the printhead at the mo-
ment when printing is started.
The location of the origin is affected by the following factors:
• Position across the paper web (X-axis):
The position of the origin in the X-axis is determined by the
XSTART value in Setup Mode.
• Position along the paper web (Y-axis):
The position of the origin in the Y-axis is determined by the
STARTADJ and STOPADJ values in Setup Mode and by any
FORMFEED
command executed before the current
PRINTFEED
command or after the preceding
PRINTFEED
.
Coordinates
Starting from the origin, the X-axis runs across the paper web from
left to right (as seen when facing the printer) and the Y-axis runs
along the paper web from the printhead towards the back of the
printer.
Units of Measurement
The unit of measurement is always “dots”, i.e. all measures depend
on the density of the printhead. The EasyCoder 301 has an 8 dots/
mm printhead, i.e. a dot is
1
/
8
mm = 0.125 mm = 0.00492" or 4.92
mils.
Insertion Point
The insertion point of any printable object is specified within the
coordinate system by means of
PRPOS|PP
. The coordinates must
be selected so the field fits completely inside the printable area.
PRPOS | PP <x-coordinate>,<y-coordinate>
<x-coordinate>
the distance in dots along the x-axis from the
origin to the insertion point
<y-coordinate>
the distance in dots along the y-axis from the
origin to the insertion point
Default value:
PRPOS 0,0
Reset to default by:
PRINTFEED|PF
Example:
PP 100, 200
↵
2. General
Formatting
Commands