5-28
6. Barcode commands
GS H n HRI Character Printing Set
Code
1D
16
+ 48
16
+ n
Domain of
function
0 ≤ n ≤ 255
Function
Specifies the printing position of the HRI characters when printing a Barcode.
n = <xxxxxx00>B: HRI characters are not printed.
n = <xxxxxx01>B: HRI characters are printed on top of the Barcode.
n = <xxxxxx10>B: HRI characters are printed below the Barcode.
n = <xxxxxx11>B: HRI characters are printed on top of and below the Barcode.
Details
• n is valid only for the low 2 bits.
• In default, n = 0.
GS w n Width of Barcode Set
Code
1D
16
+ 77
16
+ n
Domain of
function
1 ≤ n ≤ 4
Function
Sets the width of Barcode.
Module width of ITF, CODE39, and CODABAR
n
Module width of
JAN/UPCE
Narrow bar Wide bar
1 2 dot pitch 1 dot pitch 3 dot pitch
2 3 dot pitch 2 dot pitch 5 dot pitch
3 4 dot pitch 3 dot pitch 8 dot pitch
4 5 dot pitch 4 dot pitch 10 dot pitch
Details
• For CODE128, the width of a Barcode cannot be set (the module width is fixed at
2 dot pitch).
• In default, n = 2.