Commands
GS h Set Barcode Height
Description
Defines the height of the bars (in dots) for barcodes. The height is defined in n/203 inch increments. For example, specify 203 as the value for n to print a
Expression
ASCII | GS h n |
Decimal | 29 104 n |
Hex | 1D 68 n |
Parameters
n the desired height (in dot lines) of the barcode
GS k Print Barcode
Description
Prints a barcode at the current position in the current orientation. The n parameter selects the symbology to be printed. (See the table below.) The m parameter specifies how many characters are to be encoded as part of the barcode. If the number of characters to be encoded is variable, the m parameters can be set to zero. This will cause the printer to read the next character sent as a delimiter character. Further characters will then be encoded into the barcode until a character is found that matches the start character.
Expression
ASCII | GS k n m d1…dm |
Decimal | 29 107 n m d1…dm |
Hex | 1D 6B n m d1…dm |
Parameters
nSelects the barcode symbology to be used
m | Specifies the number of characters to be encoded. Also specifies which | |
EAN/UPC symbology will be used | ||
| ||
d1…dm | The data characters to be encoded. | |
Character Value | Barcode Symbology | |
n = 0 | POSTNET | |
n = 1 | reserved |
35