142 SATO RISC Printers
4. Bar Code Specifications Programming Manual
Code 128
Command Structure:
<ESC>BGbbcccdd (data)
bb: Width of narrow element in dots (01-12)
ccc: Bar height in dots (001-600)
dd: 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
(data): IncludesbarcodedataandsubsetShiftcodes;Shiftcodes
areusedtochangethesubsettypewithinthebarcode
data.
Shift codes:
>E Subset A Shift code
>D Subset B Shift code
>C Subset C Shift code
Density Table:
Input:
The following will start in Subset A for the characters “AB”, shift to Sub-
set 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
Output:
Printer
Resolution
Value of "bb" "X"
Dimension
(mils)
Density
(char/inch)
Subset A, B Subset C
12 dot/mm
01 3.3 27.3 54.7
02 6.7 13.6 27.2
03 10.0 9.1 18.3
8 dot/mm
01 5.0 18.2 36.5
02 10.0 9.1 18.3
03 15.0 13.8 12.2