Appendix F Barcode Quick Reference
1. Introduction
The barcode print facility is available in all three emulations.
2. Programming
There are three escape sequences to print barcodes
-The first sequence is to define the Barcode Header. The type of barcode as well as all parameters are selected by a header. The header does not affect any parameters outside the barcode application and remains valid until another header is transmitted or the printer is turned off. This can be done at any time but before barcode printing.
The header has the following format: |
|
ESC [ ; P2 ; P3 ; P4 ; P5 ; P6 ; P7 8 z | Note: 8 = Space |
-In step two, the
ESC [ ? 0 h
-Finally, the
ESC [ ? 0 l
Note: Between SMBC and RMBC are only printable characters tolerated (no CR or LF).
2.1Barcode Header
|
|
|
|
|
|
Format | Function/Parameter | Hex Code | |||
|
|
|
|
| |
BH | Barcode Header | 1B | 5B | 3B P2 3B P3 3B P4 | |
| P2 = Barcode type; | 3B P5 3B P6 3B P7 20 7A | |||
| P3 = Height of barcode; |
|
|
| |
| P4 | = Width of thin bars; |
|
|
|
| P5 | = Width of thin gaps; |
|
|
|
| P6 | = Ratio width to height; |
|
|
|
| P7 | = Uni/Bidirectional printing |
|
|
|
SMBC | Start of Barcode | 1B | 5B | 3F 30 68 | |
RMBC | Stop Barcode | 1B | 5B | 3F 30 6C | |
|
|
|
|
|
|