6. Barcode commands

GS H n

 

HRI Character Printing Set

 

 

 

 

Code

1D16 + 4816 + n

 

 

 

n 255

 

Domain of

0

 

function

 

 

 

 

 

 

 

 

 

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

 

1D16 + 7716 + n

 

 

 

 

 

 

 

 

 

 

 

 

 

Domain of

 

1 n 4

 

 

 

 

function

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Function

 

Sets the width of Barcode.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

n

Module width of

 

Module width of ITF, CODE39, and CODABAR

 

 

 

 

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.

5-28