2.2 Barcode Programming Examples
Note:
All examples are coded in standard uni-directional printing - that means
the parameter "P " is not used.
7
In the following examples,
stands for "Space".
The read 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 [ ; P ; P ; P ; P ; P ; P
z
234567
ESC [ ; 201 ; 8 ; 1 ; 1 ; 1 ;
z
Start Barcode:
ESC [ ? 0 h
Data:
* C
O
D
E
3 9 *
Stop Barcode:
ESC [ ? 0
l
Barcode Example for 2 of 5 Industrial
Barcode Header:
ESC [ ; P ; P ; P ; P ; P ; P
z
234567
ESC [ ; 202 ; 8 ; 1 ; 1 ; 1 ;
z
Start Barcode:
ESC [ ? 0 h
Data:
: 1 2 3 4 5 6 7 8 9 0 ;
Stop Barcode:
ESC [ ? 0
l