1-42 Command Descriptions Rev. A
➀ GS k m d1 ... dk NUL ➁ GS k m n d1 ... dn
[Name] Print bar code
[Format] ➀ ASCII GS k m d1 ... dk NUL
Hex 1D 6B m d1 ... dk 00
Decimal 29 107 m d1 ... dk 0
➁ ASCII GS k m n d1 ... dn
Hex 1D 6B m n d1 ... dn
Decimal 29 107 m n d1 ... dn
[Range] ➀ 0 ≤ m ≤ 6 (k and d depend on the bar code system used)
➁ 65 ≤ m ≤ 73 (n and d depend on the bar code system used)
➀ GS k m d1 ... dk NUL and ➁ GS k m n d1 ... dn select a bar code system and print the bar code. m
specifies a bar code system as follows:
In GS k m d1 ... dk NUL, d indicates the character code to be printed and k indicates the number of
characters to be printed. In GS k m n d1 ... dn, n indicates the number of the bar code data; the printer
processes n bytes from the next character data as bar code data. d indicates the character code to be
printed. If n is outside of the specified range, the printer stops command processing and processes
the following data as normal data. If the bar code width exceeds the printing area, the printer does
not print the bar code. In standard mode, these commands are enabled only when no data exists in
the print buffer.
m Bar Code System Number of Characters Remarks
➀
0
1
2
3
4
5
6
UPC-A
UPC-E
JAN13 (EAN13)
JAN8 (EAN8)
CODE39
ITF
CODABAR
11
≤ k ≤ 12
11
≤ k ≤ 12
12
≤ k ≤ 13
7
≤ k ≤ 8
1
≤ k
1
≤ k (even number)
1
≤ k
48
≤ d ≤ 57
48
≤ d ≤ 57
48
≤ d ≤ 57
48
≤ d ≤ 57
48
≤ d ≤ 57, 65 ≤ d ≤ 90,
d = 32, 36, 37, 43, 45, 46, 47
48
≤ d ≤ 57
48
≤ d ≤ 57, 65 ≤ d ≤ 68,
d = 36, 43, 45, 46, 47, 58
➁
65
66
67
68
69
70
71
72
73
UPC-A
UPC-E
JAN13 (EAN13)
JAN8 (EAN8)
CODE39
ITF
CODABAR
CODE93
CODE128
11
≤ n ≤ 12
11
≤ n ≤ 12
12
≤ n ≤ 13
7
≤ n ≤ 8
1
≤ n ≤ 255
1
≤ n ≤ 255 (even number)
1
≤ n ≤ 255
1
≤ n ≤ 255
2
≤ n ≤ 255
48
≤ d ≤ 57
48
≤ d ≤ 57
48
≤ d ≤ 57
48
≤ d ≤ 57
48
≤ d ≤ 57, 65 ≤ d ≤ 90,
d = 32, 36, 37, 43, 45, 46, 47
48
≤ d ≤ 57
48
≤ d ≤ 57, 65 ≤ d ≤ 68,
d = 36, 43, 45, 46, 47, 58
0
≤ d ≤ 127
0
≤ d ≤ 127