230
Chapter 11 Barcode Printing
Barcode Printing

Barcode Header

Before the data, which contains the barcode information, are trans mitted to
the printer, the barcode header must be sent. Otherwise the standard
parameter values are used (see “Header Format” below). In the header (the
printing parameters), the barcode size and type are defined. This header only
needs to be transferred once, unless settings are to be changed or the printer
has been turned off.

Header Format

Format: SUB [F] a [n] [;xyz] EM
[ ] Specification is optiona l
x, y unregarded at EAN/UPC-Barcode!
For Code 128 and EAN 128 (Type S+T) only the X parameter is
valid. This is automatically used for the Y paramet er. The Z
parameter is not evaluated.
Character Meaning:
SUB (hex.1A, dec.26) Start header
F Print feature (see sect ion "Barcode Print
Feature F" to select the F codes, page 10)
a ASCII a = "A"..."S" Barcode Types (see section "Barcode
Types")
n ASCII n = "0"..."90" Barcode height in n/6 inch.
At n="0" the barcode height equals to 1/12
inch.
; ASCII Separation character
x ASCII x = "0"..."3" Width of the narrow bar
(see “Barcode Width” on page 233)
y ASCII y = "0"..."3" Width of the n arrow space
(see “Barcode Width” on page 233)
z ASCII z = "0"..."3" Ratio of wide to narrow
(see “Barcode Width” on page 233)
EM (hex.19, dec.25) End of header
NOTE: For encoding ASCII values to decimal or hexadecimal values refer to
“Character Sets” on page 305.