RD-KT247 thermal printers
47 / 61
SendDataToPrinter(str,3);//
GS k
[Name]
Print bar code
[Type]
ASCII:
① GS k m d1...dk NUL
② GS k m n d1... dn
Decimal:
29 107 m d1...dk 0
29 107 m n d1... dn
Hex:
1D 6B m d1...dk 00
1D 6B m n d1... dn
[Scope]
① 0 ≤ m ≤ 6
② 65 ≤ m ≤ 73
The range of k and d are determined by the type of bar code used.
The range of n and d are determined by the type of bar code used.
The n is the data length of the bar code to be printed.
[Explanation]
Select a bar code system and print the bar code.
Use m to select a bar code system as follows:
m
Bar code system
length
scope
Format
1
0
UPC-A
11
k
12
48
d
57
1
UPC-E
K
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
48
d
57, 65
d
90, 32, 36, 37,
43, 45, 46, 47
5
ITF
1
k (even number)
48
d
57
6
CODABAR
1
k
48
d
57, 65
d
68 , 36, 43, 45,
46, 47, 58
Format
2
65 UPC-A
11
n
12
48
d
57
66 UPC-E
n=8
48
d
57
67 JAN13 (EAN13)
12
n
13
48
d
57
68 JAN 8 (EAN8)
7
n
8
48
d
57
69 CODE39
1
n
255
48
d
57, 65
d
90, 32, 36, 37,
43, 45, 46, 47
70 ITF
1
n
255
(even number)
48
d
57
71 CODABAR
1
n
255
48
d
57, 65
d
68, 36, 43, 45,
46, 47, 58