38
4.2.10 Bar Code Printing Commands
GS k m d1...dk NUL
Print Barcode
Format:
①
ASCII
:
GS
k
m d1...d k NUL
Decimal
:
29
107
m d1...dk 0
Hexadecimal:
1D
6B
m d1...dk 00
②
ASCII
:
GS
k
m n
d1... dn
Decimal
:
29
107
m n
d1... dn
Hexadecimal:
1D
6B
m n
d1... dn
Explanation:
①
0 ≤ m ≤ 6 (the value range of k&d is decided by the barcode type)
②
65 ≤ m ≤ 73 (the value range of k&d is decided by the barcode type)
Remark: If the width of barcode is beyond the effective printing width, no characters can
be printed, but paper feeds.
m is used to choose the barcode type, showed as below:
m
Barcode type
Character
number
d
①
0
UPC-A
11 ≤ k ≤ 12
48 ≤ d ≤ 57
1
UPC-E
11 ≤ k ≤ 12
48 ≤ d ≤ 57
2
JAN13
(EAN13)
12 ≤ k ≤ 13
48 ≤ d ≤ 57
3
JAN 8 (EAN8)
7 ≤ k ≤ 8
48 ≤ d ≤ 57
4
CODE39
1 ≤ k ≤ 255
45 ≤ d ≤ 57, 65 ≤ d ≤ 90, 32, 36, 37,43
5
ITF
1 ≤ k ≤ 255
48 ≤ d ≤ 57
6
CODABAR
1 ≤ k ≤ 255
48 ≤ d ≤ 57, 65 ≤ d ≤ 68 , 36, 43,
45,46,47,58
②
65
UPC-A
11 ≤ n ≤ 12
48 ≤ d ≤ 57
66
UPC-E
11 ≤ n ≤ 12
48 ≤ d ≤ 57
Summary of Contents for SP-RMD12
Page 39: ...37 n 2 Off line status n 3 Error status n 4 paper feeding status...
Page 47: ...45 Characters Set 2...
Page 48: ...46...