Unit 4: Standard Command Codes
SATO GL4xxe SBPL Programming Reference Page 4-36
CODE128
FUNCTION
Specifies CODE128 barcode.
FORMAT
<ESC>BGaabbbn~n
a = Narrow bar width (01 to 12 dots)
b = Barcode Height (001 to 999 dots)
n = Print Data (barcode data)
Place anywhere after <ESC>V but before <ESC>Q.
EXAMPLE
<ESC>H0200<ESC>V0550<ESC>BG03100>GAB>B789>C123456
<ESC>H0310<ESC>V665<ESC>XSAB789123456
OUTPUT
(4-25)
NOTES
Specify Start Code at the head of the data.
(1) Start Code A = <ESC>G
(2) Start Code B = <ESC>H
(3) Start Code C = <ESC>I
When using “Start Code C”, specify the print data in even numbered digits.
When the print data contains an odd number of digits, specify “Start Code A” or B” to
change the first character of the print data.
Examples:
1) 15 digits [123456789012345]
<ESC>B1<ESC>C23456789012345
2) 9 digits/Alphanumeric 6 digits [123456789ABC123]
<ESC>C12345678<ESC>B9ABC123
If using “Start Code C” to specify an odd numbered digit, “0” will be added to the end
of the print data before printing.
When a Start Code is omitted, data will be printed with “Start Code B”.
Refer to Appendix: Reference Table 27 for additional information.