Chapter 5: Programming commands
97
A776-PG00001 D 07/13
A776 (B780) Programming Guide
Print bar code
First Variation
Second Variation
ASCII
GS k
m d1…dk
NUL GS k
m n d1…dn
Hexadecimal
1D 6B
m
d1…dk
00 1D 6B
m n d1…dn
Decimal
29 107
m
d1 dk
0
29 107
m n d1…dn
(0 = End of command)
Selects the bar code type and prints a bar code for the ASCII characters entered. If the width of the bar code exceeds
one line, the bar code is not printed.
There are two variations to this command. The first variation uses a NUL character to terminate the string; the second
uses a length byte at the beginning of the string.
The check digit is calculated for UPC and JAN (EAN) codes if it is not sent from the host computer.
Six-character zero-suppressed UPC-E tags are generated from full 11 or 12 characters sent from the host computer
according to standard UPC-E rules. Start/stop characters are added for code 39 if they are not included.
Rotated barcodes set with small modules (select bar code width command 1D 77 n , with n = 1 or 2) and PDF 417
barcodes in any orientation are printed at low speed, for better readability.
Exceptions
The command is only valid at the beginning of a line.
Illegal data cancels the command.
Values:
First variation: String terminated with NUL character. Length
k
is not specified in command string; it depends on the
bar code being printed.
m
Bar code
d1...dk
length
0
UPC-A
48-57 (decimal)
Fixed length: 11,12
30-39 (ASCII numerals)
1
UPC-E
48–57
Fixed length: 11, 12
30-39
2
JAN13 (EAN)
48–57
Fixed length: 12, 13
30-39
3
JAN8 (EAN)
48–57
Fixed length: 7, 8
30-39
4
Code 39
48–57, 65–90 (decimal), 32, 36, 37,
Variable length
43, 45, 46, 47 (decimal)
d1
=
dk
= 42 (start/stop code is supplied by printer if necessary)
30-39 (ASCII numerals), 41-5A (ASCII alphabet)
20, 24, 25, 2B, 2D, 2E, 2F (ASCII special characters)
d1=dk=2A (start/stop code is supplied by printer if necessary)
5
Interleaved 2 of 5
48–57
Variable length (even number)
30-39
6
Codabar
65–68, start code 48–57, 36, 43, 45, 46, 47, 58
Variable length
41-44, start code 30-39, 24, 2B, 2D, 2E, 2F, 3A
10
PDF 417
1–255
Variable length, maximum 1000 characters
01-FF
Continued . . .
Содержание A776 ColorPOS
Страница 12: ...Contents x A776 B780 Programming Guide A776 PG00001 D 07 13...
Страница 14: ...Chapter 1 About this Guide 2 A776 B780 Programming Guide A776 PG00001 D 07 13...
Страница 160: ...Appendix B Resident Character Sets 148 A776 B780 Programming Guide A776 PG00001 D 07 13 Code page 737 Greek...
Страница 161: ...Appendix B Resident Character Sets A776 PG00001 D 07 13 A776 B780 Programming Guide 149 Code page 850 Multilingual...
Страница 162: ...Appendix B Resident Character Sets 150 A776 B780 Programming Guide A776 PG00001 D 07 13 Code Page 852 Slavic...
Страница 163: ...Appendix B Resident Character Sets A776 PG00001 D 07 13 A776 B780 Programming Guide 151 Code Page 857 Turkish...
Страница 164: ...Appendix B Resident Character Sets 152 A776 B780 Programming Guide A776 PG00001 D 07 13 Code page 858 with Eurosymbol...
Страница 165: ...Appendix B Resident Character Sets A776 PG00001 D 07 13 A776 B780 Programming Guide 153 Code page 860 Portugese...
Страница 166: ...Appendix B Resident Character Sets 154 A776 B780 Programming Guide A776 PG00001 D 07 13 Code page 862 Hebrew...
Страница 167: ...Appendix B Resident Character Sets A776 PG00001 D 07 13 A776 B780 Programming Guide 155 Code page 863 French Canadian...
Страница 168: ...Appendix B Resident Character Sets 156 A776 B780 Programming Guide A776 PG00001 D 07 13 Code page 865 Nordic...
Страница 169: ...Appendix B Resident Character Sets A776 PG00001 D 07 13 A776 B780 Programming Guide 157 Code page 866 Cyrillic...
Страница 170: ...Appendix B Resident Character Sets 158 A776 B780 Programming Guide A776 PG00001 D 07 13 Code page 1251 Cyrillic...
Страница 171: ...Appendix B Resident Character Sets A776 PG00001 D 07 13 A776 B780 Programming Guide 159 Code page 1252 Windows Latin 1...
Страница 172: ...Code page 1255 Hebrew...
Страница 173: ...Code page KZ_1048 Kazakh Code Page KZ_1048 Kazakh...
Страница 174: ...Appendix C Electronic Journal 162 A776 B780 Programming Guide A776 PG00001 D 07 13...
Страница 179: ......
Страница 180: ...A776 PG00001 Rev D 07 2013...