Appendic B. Bar Code Specifications
Page B-10 SATO Programming Reference
Code 128
COMMANDSTRUCTURE <ESC>BGbbcccdd (data)
bb
ccc
dd
(data)
=
=
=
=
Width of narrow element in dots (01-12)
Bar height in dots (001-999)
Start code to specify initial subset of bar code data
G Subset A Start code
H Subset B Start code
I Subset C Start code
Includes bar code data and subset Shift codes; Shift
codes are used to change the subset type within the bar
code data.
Shift codes:
E Subset A Shift code
D Subset B Shift code
C Subset C Shift code
CHARACTER SET See Code 128 Character Table on Page B-23
DENSITY TABLE
EXAMPLE The following will start in Subset A for the characters “AB”, shift to Subset B
for “789”, then shift to Subset C for “123456”.
<ESC>H0200<ESC>V0550<ESC>BG03100>GAB>B789>C123456
<ESC>H0310<ESC>V655<ESC>XSAB789123456
Printer
Resolution
Value of
“bb”
“X”
Dimension
(mls)
Density (char/inch)
Subsets A,
B
Subset C
600 dpi
02 3.3 27.3 54.7
03 5.0 18.2 36.5
04 6.7 13.6 27.2
300 dpi
01 3.3 27.3 54.7
02 6.7 13.6 27.2
03 10 9.1 18.3
200 dpi
01 5.0 18.2 36.5
01 10.0 9.1 18.3
03 15.0 13.8 12.2