30
UBI EasyCoder 301 Direct Protocol – Programmer's Guide Ed. 1
Chapter 4 Label Design
6. Box Field
A box is a hollow square or rectangle that can be rotated with an
increment of 90
°
according to the print direction. If the line thick-
ness is sufficiently large, the box will appear to be filled (another
method is to print an extremely thick short line).
In addition to the general formatting commands,
PRPOS
,
ALIGN
and
DIR
, a box field is specified by a single command.
Set Size of the Box
The size of the box is specified with regard to height, width and line
weight (thickness).
PRBOX | PX <height>,<width>,<line thickness>
<height>
the height of the box in dots perpendicular to
the selected direction.
<width>
the length of the box in dots along the se-
lected direction.
<line thickness>
the line weight in dots.
Default:
None
Summary
To create a box field, the following formatting commands must be
given (in most cases, default values may substitute missing para-
meters). Printing commands are explained in chapter 5.2.
Purpose
Command
Default
Remarks
X/Y Position
PRPOS | PP
0,0
Number of dots
Alignment
ALIGN | AN
1
Select ALIGN 1 – 9
Direction
DIR
1
Select DIR 1 – 4
Box size
PRBOX | PX
n.a.
Height, width and line
thickness in dots
Example:
PP 250,250:AN 1:DIR 3:PX 200,200,10
↵