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 (180 dpi)

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

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

v1, v2: Bar length

v1 + v2 ⋅ 256 (1/180-inch units)

Note:

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

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

C-16Specifications