13863
Appendix G Barcode Quick Reference
G-1
G-2
Appendix G
Barcode Quick Reference
Barcode Header Parameters
1. Introduction
The barcode print facility is available in all three emulations.
2. Programming
There are three escape sequences to print barcodes
- The first sequence is to define the Barcode Header. The type of barcode as
well as all parameters are selected by a header. The header does not affect
any parameters outside the barcode application and remains valid until
another header is transmitted or the printer is turned off. This can be done at
any time but before barcode printing.
The header has the following format:
ESC [ ; P ; P ; P ; P ; P ; P
8
8
z
Note:
8
= Space
2
3
4
5
6
7
- In step two, the ESC-sequence "Set Mode Barcode (SMBC)" starts the
barcode printing.
ESC [ ? 0 h
- Finally, the ESC-sequence "Reset Mode Barcode (RMBC)" will stop printing.
ESC [ ? 0
Note:
Between
SMBC
and
RMBC
are only printable characters tolerated (no CR
or LF).
2.1
Barcode Header
Format
Function/Parameter
Hex Code
BH
Barcode Header
1B 5B 3B P 3B P 3B P
P = Barcode type;
3B P 3B P 3B P 20 7A
2
P = Height of barcode;
3
P = Width of thin bars;
4
P = Width of thin gaps;
5
P = Ratio width to height;
6
P = Uni/Bidirectional printing
7
2
3
4
5
6
7
SMBC
Start of Barcode
1B 5B 3F 30 68
RMBC
Stop Barcode
1B 5B 3F 30 6C
P
Barcode type
2
- default =
101 (
Code 39 horizontal)
Type
horizontal
hori
vertical
ve
human
human
readable text
readable text
Code 39
101
201
301
401
2 of 5 industrial
102
202
302
402
2 or 5 interleaved
103
203
303
403
Codabar (Monarch)
104
204
304
404
EAN 8
105
205
not applicable
not applicable
EAN 13
106
206
not applicable
not applicable
Code 93
107
207
307
407
MSI Mod 10/10
108
208
308
408
UPC-E
109
209
not applicable
not applicable
UPC-A
110
210
not applicable
not applicable
Code 128 (EAN 128)
111
211
311
411
Postnet
112
not applicable
not applicable
not applicable
KIX Code
113
not applicable
not applicable
not applicable
P
Height of barcode
3
-
default: / " - 0.64 cm
3
12
All characters in a line are automatically repeated according to the selected
barcode height. This is also true for plain text!
-
P * / "
3
12
1
-
possible values from:
0 to 40 (30 to 34 30 ) or (48 to 52 48 ) for vertical barcodes
H
H
H
D
D
D
0 to 99 (30 to 39 39 ) or (48 to 57 57 ) for horizontal barcodes
H
H
H
D
D
D
Barcode
Height in % of
minimum height
barcode length
in mm
Code 39
25
20 (0.8")
Codabar
25
20 (0.8")
Code 93
15
6.25 (0.25")
Code 128
15
6.25 (0.25")