User’s Manual
Print Width, Character Width And Height
ASCII | Dec | Hex | Description |
DC2 | 18 | 12 | Condensed mode (42 columns) off. |
|
|
|
|
DC4 | 20 | 14 | |
|
|
|
|
ESC d n | 100 | 64 | Double height on (n=1) or off (n=0). |
|
|
|
|
ESC H | 72 | 48 | |
|
|
|
|
ESC P | 80 | 50 | |
|
|
|
|
ESC SI | 15 | 0F | Condensed mode (64 columns) on. |
|
|
|
|
ESC SO | 14 | 0E | |
|
|
|
|
ESC V | 86 | 56 | |
|
|
|
|
ESC W n | 87 | 57 | Expanded mode on (n=1) or off (n=0). |
|
|
|
|
SI | 15 | 0F | Condensed mode (64 columns) on. |
|
|
|
|
SO | 14 | 0E | |
|
|
|
|
Barcodes
Barcodes are obtained using the GS command sequences show below. Please note that all parameters and numbers are in decimal format, unless noted.
Comand | Hexadecimal |
|
| Description |
Decimal |
|
| ||
|
|
|
| |
GS h n | 1D 68 n |
|
| Sets the height n of the barcode generated – each height unit corresponds |
| 29 104 n |
|
| t a dot of 0.125 mm, so the final height is n x 0.125 mm where 1 - n |
|
|
|
| - 255. The default is n=162. |
|
|
|
|
|
GS w n | 1D 77 n |
|
| Determines the width of the barcode, where n=2 corresponds to nor- |
| 29 119 n |
|
| mal width, n=3 is double width and n=4 is quadruple width. The |
|
|
|
| default is n=3. |
|
|
|
|
|
|
|
|
| Choose the position of the human readable information (HRI) of the |
|
|
|
| barcode. |
GS H n | 1D 48 n |
|
| n=0: No HRI |
| 29 72 n |
|
| n=1: On top of the barcode (default) |
|
|
|
| n=2: On the bottom of the barcode |
|
|
|
| n=3: Both on top and on the bottom of the barcode. |
|
|
|
|
|
|
|
|
| Sets the font used to print the human readable information (HRI). The |
GS f n | 1D 66 n |
|
| default is n=0. |
| 29 102 n |
|
| n=0 or n=48 – normal |
|
|
|
| n=1 or n=49 – condensed |
|
|
|
| |
GS k 0 d1...d11 NUL | 1D 6B 00 d1...d11 | 00 |
| |
| 29 107 0 d1...d11 | 0 | Prints an | |
GS k 0 65 11d1...d11 | 1D 6B 41 0B d1...d11 | containing the barcode information with 48 | ||
| ||||
| 29 107 55 11 d1...d11 |
| ||
|
|
|
| |
GS k 1 d1...d6 NUL | 1D 6B 01 d1...d6 | 00 |
| |
| 29 107 1 d1...d6 | 0 | Prints an | |
GS k 66 6 d1...d6 | 1D 6B 42 06 d1...d6 | the barcode information with 48 | ||
| ||||
| 29 107 66 6 d1...d6 |
| ||
|
|
| ||
GS k 2 d1...d12 NUL | 1D 6B 02 d1...d12 00 | Prints an | ||
| 29 107 2 d1...d12 0 | |||
| containing the barcode information with 48 |
20