Chapter 11: Bar Code Commands for 24-Pin Printers116
Code 128 Bar Code Commands
Code 128 has 106 different characters, each of which can have any one of three different
meanings depending on which code set is engaged:
Table 88: IBM/Epson Select Code 128 Command —
Characters for Each Code Set (24-Pin Printers)
Characters
Code Set ASCII Dec Hex
A
B
C
NUL to '
DC3 to DLE
0 to 9
0 to 96
25 to 127
48 to 57
00 to 60
19 to 7F
30 to 39, in 2-digit pairs
A special code at the beginning indicates which set is engaged: three shift codes are also
available for use within the bar code to indicate a change in the code set engaged.
Select Code 128 Bar Code Command
The command for selecting Code 128 is
ESC DLE A m 4 0 n
3
n
4
n
5
0 0 n
8
Which set will be engaged is entered using the Print Code 128 Bar Code Command described
below.
Code 128 Parameters n
3
and n
4
These parameters set the vertical length of the bars in units of 15/180", as calculated by the
equation
[(n
3
x 10) + n
4
] x 15/180"
where the total value must be less than or equal to 25.
Code 128 Parameter n
5
This parameter sets the maximum width of one character in 1/360" increments as follows:
Table 89: IBM/Epson Select Code 128 Command —
Character Widths for Parameter n
5
Values (24-Pin Printers)
Value of n
5
Character Width
1
2
3
4
5
6
7
55/360"
77/360"
110/360"
132/360"
165/360"
187/360"
220/360"