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 n
1
n
2
k
m
s
v
1
v
2
c
data
n
= (
n
1 + (256 ×
n
2))
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)
❑
The
v1
and
v2
values are ignored when POSTNET is selected.
❑
The long bar length of POSTNET is always 0.125 inches; the short bar
length is always 0.050 inches.
L
Gentian Rev.c
A5 size Appendix B
97/06/17 pass 3
B-12
Specifications