Chapter 5: Programming commands
93
A776-PG00001 D 07/13
A776 (B780) Programming Guide
Bar codes
These commands format and print bar codes and are described in order of their hexadecimal codes.
Two-dimensional bar code QR code
QR code is a 2-dimensional matrix symbology consisting of an array of nomimally square modules arranged in an overall
square pattern using the QR symbology. A unique pattern at three of the symbol’s four corners assists in determining the
bar code size, position, and rotation.
A series of five commands are required to create and print QR codes.
1. Select the model
1D 28 6B 04 00 31 41 n1 n2
2. Set size of module
1D 28 6B 03 00 31 43 n
3. Select the error correction level
1D 28 6B 03 00 31 45 n
4. Store the symbol data
1D 28 6B qL qH 31 50 30 f1…fk
5. Print the symbol data
1D 28 6B 03 00 31 51 30
The details of each command are described below.
Note: The settings for model, size of module, and error correction level are effective until the printer is reset, or the power
is turned off.
Select the QR code model
ASCII
GS ( k EOT NUL 1 A n1 n2
Hexadecimal
1D 28 6B 04 00 31 41 n1 n2
Decimal
29 40 107 4 0 49 65 n1 n2
Value of n1:
31h = Selects model 1
32h = Selects model 2 (default)
Value of n2:
00h (default)
This command specifies the original version (m = 1), or the enhanced form of the symbology (m = 2). Model 2 is the
recommended model.
Set size of QR code module
ASCII
GS ( k ETX NUL 1 C n
Hexadecimal
1D 28 6B 03 00 31 43 n
Decimal
29 40 107 3 49 67 n
Value of n:
01h ≤ n ≤ 10h
Default:
03h
This command sets the number of encoded data bytes, including carriage returns and line feeds.
Содержание 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...