Barcode commands

Your printer has powerful barcode printing capabilities and includes the following resident barcode fonts: EAN-13, EAN-8, Interleaved 2 of 5, UPC-A, UPC-E, Code 39, Code 128, and POSTNET. See the Barcode commands below:

ESC ( B

 

 

 

Select Barcode Printing

Format:

 

 

 

 

 

ASCII code:

ESC

(

B

m

n

Decimal:

27

40

66

m

n

Hexadecimal:

1B

28

42

m

n

Function:

ESC ( B n1 n2 k m s v1 v2 c data n = (n1 + (256 × n2))

k: Select Barcode

k = 0: EAN - 13, 1: EAN - 8, 2: Interleaved 2 of 5, 3: UPC - A, 4: UPC - E, 5: Code 39, 6: Code 128, 7: POSTNET

m: Module width (120 dpi)

m = 2: 2 dots, 3: 3 dots, 4: 4 dots, 5: 5 dots

s: Space adjustment value -3 ≤ s ≤ 3 (1/240 inch units)

v1, v2: Bar length

v1 + v2 × 256 (1/72-inch units)

TThe v1 and v2 values are ignored when POSTNET is selected.

B

TThe long bar length of POSTNET is always 0.125 inch; the short bar length is always 0.050 inch.

Printer Commands and Character Tables B-3