39
UBI EasyCoder 71 – Programming
INTRODUCTION, cont'd.
General Programming
Information, cont'd.
Because the software program uses " " (ASCII 34 dec.), you need
a special designator if you need to print text or bar code which
includes quotation marks
1
. The backslash character "\" (ASCII 94
dec.) serves that purpose:
To print:
"
enter:
" \" "
To print:
"UBI"
enter:
" \"UBI\" "
To print:
\
enter:
" \\ "
To print:
\code\
enter:
" \\code\\ "
1
/. If a 7 bit character set is selected, this syntax will not be supported. All
back-slash (\ )characters will be printed as entered.
Field
Each small block in the figure below represents a field on the form.
The form defines the location of the fields on the label and
parameters for each field, as well as the content of the field. Fields
can contain fixed data, variable data, or a combination of both.
Fixed data are embedded in the form. Variable data are provided
from the host at print time.
Field Positioning
Dots are used as the unit for establishing position on the form in
relation to a specified reference point, in this example the top left
corner of the form. There are eight dots per millimetre, or 203 dots
per inch. E.g., a field that starts 5 mm (0.197 in.) in from the left
margin and 3 mm (0.118 in.) down should be expressed as 40 dots
on the x axis and 24 dots on the y axis.
On the x axis (horizontal) only, the printer rounds off the dimen-
sions in dots to the nearest millimetre. For example, the printer
rounds off 63 dots to 8 millimetres, and 74 dots to 9 millimetres.
X Axis
Y Axis
Paper Feed
Direction
Variable
Text V00
Data
Fixed Text
Variable
Bar Code V01
Counter C0
Counter C1
Variable V02