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:
Decimal:
Hexadecimal:
ESC
27
1B
(
40
28
B
66
42
m
m
m
n
n
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)
Note:
T
The v1 and v2 values are ignored when POSTNET is selected.
T
The long bar length of POSTNET is always 0.125 inch; the short bar length
is always 0.050 inch.
L
Sun-G+
Rev.C
A5 size
Appendix c
97/11/13
pass 0
C-12
Specifications