Title Rev.
Page
HMK(P)-081,HMC-081 Ver1.0
44
GS+’k’+m+d1…dn+NUL
[Name]
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
[Caution]
In CODE128, set additional “{“ in 2bytes when the special character as below.
Barcode data
Special
character
ASCII Hex Decimal
SHIFT
{S
7Bh, 53h
123, 83
CODE A
{A
7Bh, 41h
123, 65
CODE B
{B
7Bh, 42h
123, 66
CODE C
{C
7Bh, 43h
123, 67
FNC1
{1
7Bh, 31h
123, 49
FNC2
{2
7Bh, 32h
123, 50
FNC3
{3
7Bh, 33h
123, 51
FNC4
{4
7Bh, 34h
123, 52
“{“
{{
7Bh, 7Bh
123, 123
Notice
: Also, you have to add the following initial code, when you start CODE A,
CODE B, CODE C. It is to recognize CODE128.
CODE128
Initial code
For example, the barcode data ABCD.
CODE A
g
“gABCD"
CODE B
h
“hABCD"
CODE C
i
“iABCD"