Chapter 11 Barcode Printing

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 “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 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.

Character Meaning:

 

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 “Barcode Width” on page 233)

y

ASCII

y = "0"..."3"

Width of the narrow 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.

230

Page 230
Image 230
Tally Genicom 6600 manual Barcode Printing, Barcode Header, Header Format