Example: The following escape commands encode the data “12345678”. Due to space limitation CR LF are not shown
Escape Sequence: |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
ESC | z | 9 | 1 | 2 | 0 | 0 | 2 | 6 | 0 | 8 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
Hexadecimal : |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1B | 7A | 39 | 31 | 32 | 30 | 30 | 32 | 06 | 00 | 08 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 |
Decimal: |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
27 | 122 | 57 | 49 | 50 | 48 | 48 | 50 | 6 | 0 | 8 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 |
Barcode Height Multiplier |
|
|
|
|
|
|
|
|
|
|
| ESC z h n |
|
This command allows the user to change the height of a selected barcode using a multiplier with values 1 < n < 18 (HEX values). The multiplier command can be sent prior to or after the Print Barcode sequence (ESC z t n h data CR LF)
Example:
The sequence below prints CODE39 barcode first of a height of 50 dots and then sets the new height to 3 x 50 dots. To print
Barcode Height Multiplier |
|
|
|
|
|
|
|
|
|
|
|
|
| |
Escape Sequence: | ESC | z | h | 3 |
|
|
|
|
|
|
|
|
|
|
Hexadecimal: | 1B | 7A | 68 | 03 |
|
|
|
|
|
|
|
|
|
|
Decimal: | 27 | 122 | 104 | 3 |
|
|
|
|
|
|
|
|
|
|
Printing Barcode: |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Escape Sequence: | Esc | Z | 1 | 7 | 2 | C | O | D | E | - | 3 | 9 | CR | LF |
Hexadecimal: | 1B | 5A | 31 | 07 | 32 | 43 | 4F | 44 | 45 | 2D | 33 | 39 | 0D | 0A |
Decimal: | 27 | 90 | 49 | 7 | 50 | 67 | 79 | 68 | 69 | 45 | 51 | 57 | 13 | 10 |
Graphics
The printer uses a single line thermal print head with elements spaced at 0.125mm. The
To select the
| ESC V n1 n2 data |
To achieve optimized smooth printing and to extend battery life when printing graphics, a print buffer is employed. The printer buffer accumulates a specific amount of data before actually printing the graphic data.
24