55
GS+’k’+m+d1…dn+NUL
Function Barcode printing
Code ASCII GS k
m d1…dn NUL
Hex 1D
6Bh m d1…dn 00h
Decimal29
107
m
d1…dn 0
Range
1≤m≤7, n and d differ depending on the barcode (see table below).
Description Prints barcode
m Barcode
type
n (number of barcode data) d (barcode data)
1 UPC-E n=7 (verification characters added
automatically)
48≤d≤57
2 EAN13 n=12 (verification characters added
automatically)
48≤d≤57
3 EAN8 n=7 (verification character added
automatically)
48≤d≤57
4 CODE39 1≤n (start and stop characters added
automatically)
48≤d≤57, 65≤d≤90
d=32,36,37,43,45,46,47
5 ITF (I of 2/5) 1≤n (odd, even numbers) 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 (verification and stop
characters added automatically)
0≤d≤127
Caution In CODE128, in the case of special characters as shown in the table below, add “{”
to set to 2 bytes.
Special
characters
Barcode data
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