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)
Code Set
A
B
C
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
Which set will be engaged is entered using the Print Code 128 Bar Code Command described
below.
Code 128 Parameters n
These parameters set the vertical length of the bars in units of 15/180", as calculated by the
equation
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
116
Chapter 11: Bar Code Commands for 24-Pin Printers
Characters
ASCII
Dec
NUL to '
0 to 96
DC3 to DLE
25 to 127
0 to 9
48 to 57
ESC DLE A m 4 0 n
and n
3
4
[(n
x 10) + n
3
Value of n
5
1
2
3
4
5
6
7
Hex
00 to 60
19 to 7F
30 to 39, in 2-digit pairs
n
n
0 0 n
3
4
5
8
] x 15/180"
4
Values (24-Pin Printers)
5
Character Width
55/360"
77/360"
110/360"
132/360"
165/360"
187/360"
220/360"