ESC/POS Command Manual
43
[Format]
ASCII GS k
①
m
d1…dk
NUL
Hex 1D 6B
m
d1…dn
00
Decimal 29 107
m
d1…dn
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 depends on the code system used)
65
②
≤
m
≤
73
n
and d depends on the code system used)
[Description]
Selects a bar code system and prints the bar code.
m
selects a bar code system as follows:
m
Bar Code System
Number of Character
Remarks
0
UPC – A
11
≤
k
≤
12
48
≤
d
≤
57
1
UPC – E
11
≤
k
≤
12
48
≤
d
≤
57
2
EAN13
12
≤
k
≤
13
48
≤
d
≤
57
3
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
65
UPC – A
11
≤
n
≤
12
48
≤
d
≤
57
66
UPC – E
11
≤
n
≤
12
48
≤
d
≤
57
67
EAN13
12
≤
n
≤
13
48
≤
d
≤
57
68
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
72
CODE93
1
≤
n
≤
255
0
≤
d
≤
127
②
73
CODE128
2
≤
n
≤
255
0
≤
d
≤
127
[Details for
] This command ends with
①
a NUL code.
When the bar code system used is UPC-A or UPC-E, the printer prints the bar code data
after receiving 12 bytes bar code data and processes the following data as normal data.
When the bar code system used is JAN 13, the printer prints the bar code after receiving 13
bytes bar code data and processes the following date as normal data.
When the bar code system used is JAN 8, the printer prints the bar code after receiving 8
bytes bar code data and processes the following data as normal data.
The number of data for ITF bar code must be even numbers. When
an odd number of data is input, the printer ignores the last received
data.
[Details for
]
②
n
indicates the number of bar code data, and the printer processes n bytes from the next character
data as bar code data.
If
n
is outside of the specified range the printer stops command processing and processes the
following data as normal data.
[Details in standard made]
If
d
is outside of the specified range, the printer only feeds paper and process the following
data as normal data.
If the horizontal size exceeds printing area, the printer only feeds the paper.
This command feeds as much paper as is required to print the bar code, regardless of the line