Barcode printing – Tally Genicom Matrix Printer User Manual

Page 363

Advertising
background image

Barcode Printing

Barcode
Header

Before the data, which contains the barcode information, are transmitted to the printer,
the barcode header must be sent. Otherwise the standard parameter values are used
(see section "Header Format"). In the header, the printing parameters, the barcode size
and the barcode 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 optional

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 parameter. The Z parameter is not evaluated.

Meaning of the characters:

SUB

(hex.1A, dec.26)

Start header

F

Print feature (see section "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 section "Barcode width")

y

ASCII

y = "0"..."3"

Width of the narrow space (see section "Barcode width")

z

ASCII

z = "0"..."3"

Ratio of wide to narrow (see section "Barcode width")

EM

(hex.19, dec.25)

End of header

For encoding ASCII values to decimal or hexadecimal values refer to the appendix,
"Character Sets".

8

Barcode Printing

Advertising