![](/images/new-backgrounds/1205417/205417255x1.webp)
Appendix G Barcode Quick Reference
2.2Barcode Programming Examples
Note: All examples are coded in standard
In the following examples, 8 stands for "Space".
The small square before and after the printed barcode indicates the
actual print position.
Between Start Barcode and Stop Barcode are only printable characters tolerated (no CR or LF).
Barcode Example for Code 39
Barcode Header: | ESC [ ; | P2 ; P3 ; P4 ; P5 ; P6 ; | P7 8 z | ||
| ESC [ ; | 201 | ; 8 ; 1 ; 1 ; 1 ; | 8 z | |
Start Barcode: | ESC [ ? | 0 h |
|
| |
Data: | * C | 8 O 8 D | 8 E 8 8 8 3 9 * |
| |
Stop Barcode: | ESC | [ ? | 0 |
|
|
Barcode Example for 2 of 5 Industrial |
|
|
|
|
|
|
| |||||||||||||
Barcode Header: |
|
|
| ESC [ ; P2 ; P3 ; P4 ; P5 ; P6 ; P7 8 z | ||||||||||||||||
|
|
|
|
|
|
|
|
| ESC [ ; 202 | ; 8 ; 1 ; 1 ; 1 ; 8 z | ||||||||||
Start Barcode: |
|
|
| ESC [ ? 0 |
| h |
|
|
|
|
|
|
| |||||||
Data: | : 1 2 3 4 | 5 | 6 7 8 9 0 ; | |||||||||||||||||
Stop Barcode: |
|
|
| ESC [ ? 0 |
|
|
|
|
|
|
|
|
| |||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Appendix G Barcode Quick Reference
Barcode Example for 2 of 5 Interleaved
Barcode Header: |
|
|
|
|
| ESC [ | ; P2 ; P3 ; P4 ; P5 ; P6 ; | P7 8 z | ||||||||||||||||||||||||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| ESC [ | ; 203 | ; 8 ; 1 ; 1 ; 1 ; | 8 z | ||||||||||||||||||||||
Start Barcode: |
|
|
|
|
| ESC [ | ? 0 | h |
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||||||||||||||||||||||
Data: | : 1 | 2 | 3 | 4 | 5 | 6 7 8 9 0 ; |
| |||||||||||||||||||||||||||||||||||||
Stop Barcode: |
|
|
|
|
| ESC | [ | ? | 0 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |||||||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
:1 2 3 4 5 6 7 8 9 0 ;
Barcode Example for Codabar (Monarch)
Barcode Header: |
|
|
| ESC [ | ; P2 ; P3 ; P4 ; P5 ; P6 ; | P7 8 z | |||||||||||||||||||||||||||||||||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| ESC [ | ; 204 | ; 8 ; 1 ; 1 ; 1 ; | 8 z | ||||||||||||||||||||||||||||||
Start Barcode: |
|
|
| ESC [ | ? 0 |
| h |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |||||||||||||||||||||||||
Data: |
|
|
| a 0 | 1 | 2 | 3 | 4 |
| 5 6 7 8 9 t |
| ||||||||||||||||||||||||||||||||||||||||
Stop Barcode: |
|
|
| ESC | [ | ? | 0 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |||||||||||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|