When printer receives the command, it transfers one byte through TXD line of
the interface. Definition of said byte is shown as below.
Barcode commands
GS H n Select HRI (Human Readable Interpretation) printing
Format: ASCII : GS H n
Decimal : 29 72 n
Hexadecimal : 1D 48 n
Explanation:
u 0 < n < 255
n is define as:
n Function
0 Not print HRI
others
Print HRI
u default n = 0.
Bit Function
0 1
0
1
2
3
4
5
6
7
Cash Drawer on/off Pin
not defined
not defined
not defined
not in use
not defined
not defined
not defined
Low
------
------
------
0
------
------
------
High
------
------
------
------
------
------
------
32
GS h n Set barcode height
Format: ASCII : GS h n
Decimal : 29 104 n
Hexadecimal : 1D 6 n
Explanation:
This command set the bar code height as n dots where n = 1-255,default
n=50.
GS w n Set barcode width
Format: ASCII : GS w n
Decimal : 29 119 n
Hexadecimal : 1D 77 n
Explanation:
Set bar code width with n. n=2~3
The bar code width according to the n as shown below:
n
Thin element
width (mm)
Thick element
width (mm)
2
0.375 1.000
Default n = 2.
GS k m d1…dk NUL
GS k m n d1… Print barcode
Format:• ASCII : GS k m d1…dk NUL
Decimal : 29 107 m d1…dk 0
Hexadecimal : 1D 6B m d1…dk 00