ESC/P Command Reference
- 65 -
5. Control Command Details
(4) [Backslash]: End of barcode
Barcode Type
Command
POSTNET, UPC/EAN EXTENTION, CODE39,
ITF(I-2/5), EAN-8, EAN-13, UPC-A, UPC-E,
CODABAR, RSS symbols
ESC i
[
Parameter
]
B or b
[
Barcode data
]
\
CODE93, CODE128,
GS1-128 (UCC/EAN-128)]
ESC i
[
Parameter
]
B or b
[
Barcode data
]
\\\
Description
z
Specifies a barcode image.
z
Any data extending beyond the right margin is ignored.
z
Since the check digit is generated automatically from the barcode data, the check digit is not sent as
barcode data. Since the length of the barcode data is also checked, the data would not be correctly
recognized if the check digit data was present.
z
With CODE39, ITF (I-2/5), CODABAR, CODE128, GS1-128 (UCC/EAN-128) or RSS Expanded, the buffer
length for the barcode image is about 22 cm. A barcode longer than 22 cm will not be printed.
z
The characters that can be printed with CODE128 and GS1-128 (UCC/EAN-128) are the 128 ASCII
characters and the special codes FNC1, FNC2, FNC3 and FNC4.
Codes assigned to the special codes:
FNC1: 86h
FNC2: 81h
FNC3: 80h
FNC4: 84h
z
The control codes and special codes appear as spaces when characters are printed below CODE128 and
GS1-128 (UCC/EAN-128) barcodes.
z
Special code FNC1 can also be printed with RSS Expanded.
This special code also appears as a space when characters are printed below the barcode.
Code assigned to the special code:
FNC1: 86h
Example
For barcode type CODE39, with no characters printed below the barcode, a size of large (width) × 480 dots
(height), without parentheses, a ratio between thick and thin bars of 3:1, and bar lengths not equalized, the
command will be as shown below.
ESC i t0 r0 h01h 02h w3 z0 f0 B 123456789 \