Title
Rev.
Page
HMC-060, HMK-060 Release 2
Ver2.0
P.38
GS+’W’+nL+nH
[Name]
Set printing area width
[Format]
ASCII
GS
W
nL
nH
Hex
1D
57h
nL
nH
Decimal
29
87
nL
nH
[Rasnge]
0≤nL≤255, 0≤nH≤255
[Initial Value] nL+nH×256=448 (56mm, nL=0, nH=0)
[Descript]
Set printing area width from the left margin in (nL+nH×256)×0.125mm
GS+’h’+n
[Name]
Select barcode height
[Format]
ASCII
GS
h
n
Hex
1D
68h
n
Decimal
29
104
n
[Range]
1≤n≤255
[Initial Value]
n=162 (20.25mm)
[Descript]
Select barcode height by n×0.125mm
GS+’k’+m+d1…dn+NUL
[Name]
Print barcode
[Format]
ASCII
GS
k
m
d1…dn NUL
Hex
1D
6Bh
m
d1…dn 00h
Decimal
29
107
m
d1…dn 0
[Range] 1≤m≤7, n & d depend on barcode system used
[Descript]
Refer the table as below
m
Barcode system
n (Barcode data numbers)
d (barcode data )
1
UPC-E
n=7 (check digit is automatically added )
48≤d≤57
2
EAN13
n=12 (
check digit is automatically added
)
48≤d≤57
3
EAN8
n=7 (
check digit is automatically added
)
48≤d≤57
4
CODE39
1≤n (Start & Stop characteres is
automatically added
48≤d≤57, 65≤d≤90
d=32,36,37,43,45,46,47
5
ITF(I of 2/5)
1≤n (Only even number)
48≤d≤57
6
CODABAR
1≤n
48≤d≤57, 65≤d≤68
d=36,43,45,46,47,58
7
CODE128
2≤n≤255 (Check digit , Stop character
Is automatically added)
0≤d≤127
Printing area
Printing area width
Left Margin