
Appendix G Barcode Quick Reference Appendix G Barcode Quick Reference
G-5 G-6
2.2 Barcode Programming Examples Barcode Example for 2 of 5 Interleaved
Note: All examples are coded in standard uni-directional printing - that means Barcode Header: ESC [ ; P ; P ; P ; P ; P ; P 88 z
the parameter "P " is not used. ESC [ ; 203 ; 8 ; 1 ; 1 ; 1 ; 88 z
7
In the following examples, 88 stands for "Space". Start Barcode: ESC [ ? 0 h
The small square before and after the printed barcode indicates the Data: : 1 2 3 4 5 6 7 8 9 0 ;
actual print position. Stop Barcode: ESC [ ? 0
Between Start Barcode and Stop Barcode are only printable characters
tolerated (no CR or LF).
Barcode Example for Code 39
Barcode Header: ESC [ ; P ; P ; P ; P ; P ; P 88 z
2 3 4 5 6 7
ESC [ ; 201 ; 8 ; 1 ; 1 ; 1 ; 88 z
Start Barcode: ESC [ ? 0 h
Data: * C 88 O 88 D 88 E 88 88 88 3 9 *
Stop Barcode: ESC [ ? 0
Barcode Example for 2 of 5 Industrial
Barcode Header: ESC [ ; P ; P ; P ; P ; P ; P 88 z
2 3 4 5 6 7
ESC [ ; 202 ; 8 ; 1 ; 1 ; 1 ; 88 z
Start Barcode: ESC [ ? 0 h
Data: : 1 2 3 4 5 6 7 8 9 0 ;
Stop Barcode: ESC [ ? 0
2 3 4 5 6 7
Barcode Example for Codabar (Monarch)
Barcode Header: ESC [ ; P ; P ; P ; P ; P ; P 88 z
2 3 4 5 6 7
ESC [ ; 204 ; 8 ; 1 ; 1 ; 1 ; 88 z
Start Barcode: ESC [ ? 0 h
Data: a 0 1 2 3 4 5 6 7 8 9 t
Stop Barcode: ESC [ ? 0