Chapter 10: Bar Code Commands for 9-Pin Printers110
n
8
= 0: do not print readable characters
Print UPC E Bar Code Command
The command for printing a UPC E bar code is
ESC DLE B m [data]
where m designates the number of characters which will follow in the data. A check digit
cannot be used with UPC E bar codes.
EAN 8 Bar Code Command s
EAN bar coding is a variation of UPC coding. EAN 8 encodes eight digits. The digits can be any
ASCII character from 0 to 9 (48 to 57 Dec, 30 to 39 Hex).
Select EAN 8 Bar Code Command
The command for selecting EAN 8 is
ESC DLE A m 0 1 n
3
n
4
n
5
0 0 n
8
EAN 8 Parameters n
3
and n
4
These parameters set the vertical length of the bars in 6/72", as calculated by the equation
[(n
3
x 10) + n
4
] x 6/72"
where the total value must be less than or equal to 25.
EAN 8 Parameter n
5
This parameter sets the maximum width of one character in 1/144" increments as follows:
Table 82: IBM/Epson Select EAN 8 Command —
Maximum Character Widths for Parameter n
5
Values (9-Pin Printers)
Value of n
5
Character Width
1
2
3
4
5
6
7
19/144"
26/144"
33/144"
40/144"
47/144"
54/144"
61/144"
When calculating the width of the printout, you must take into consideration the left hand
guard pattern, the center guard pattern and the right hand guard pattern.
EAN 8 Parameter n
8
This parameter sets whether or not the readable characters are printed.
n
8
= 1: print readable characters
n
8
= 0: do not print readable characters