[ESC+BQ] QR Code (Compatible Command)
Hexadecimal code
| ESC | <1B>16 |
|---|---|
| BQ | <42>16<51>16 |
Parameter
Manual setup abcc,(ddeeff,)g(hhhh)n
Auto setup abcc,(ddeeff,)gn
Initial value
Nil
Valid range and term of command
| When the power switch is OFF | The set parameter is not maintained. |
| Valid range within items | The set parameter becomes invalid. |
| Valid range between items | The set parameter becomes invalid. |
Function
Specifying QR code.
Format
[Manual setup] <BQ>abcc,(ddeeff,)g(hhhh)n
[Auto setup] <BQ>abcc,(ddeeff,)0n
-
Parameter
a [Error correction level]
= 1 : 7% High density level (L)
= 2 : 15% Standard level (M)
= 3 : 30% High reliability level (H)
= 4 : 15% High reliability level (Q)
b [Concatenation mode]
= 0 : Normal mode
= 1 : Concatenation mode
c [Size of one side of cell] = Valid Range : 01 to 99 (dot)
e.g.) cc=04
d [No. of partitions by concatenation mode] = Valid range : 01 to 16
e [Sequential number partitioned by concatenation mode] = Valid range : 01 to 16
f [Concatenation mode parity data] = Valid range : 00 to FF
g [Character mode]
= 0 : Auto setup mode
= 1 : Number mode
= 2 : Alphanumeric mode
= 3 : Binary mode
= 4 : Kanji mode
h [No. of data] = Valid range : 0001 to 1167 (digit)
n [Print data] = Data
Coding Example
Error correction level: 30%, Concatenation mode: Normal, Size of one side of cell: 10
<A>
<V>100<H>200<BQ>3010,112345
<Q>2
<Z>
Supplementary Explanation
- Carry out XOR logic operation of all the partitioned print data of the QR code and then, specify this operation data in hexadecimal character. This is what we call [Parity data].
- When character mode is set to other than binary mode, it is not necessary to set data number parameter.
Supplementary explanation per model: PW2 series
- Support only PW208NX/PW208mNX (International).
Precautions during use
- This is the command of the old specification. Recommend the use of <2D31>.
QR Code data size list (Model 1)
| バージョン | エラー コレクション |
数字 | 英数字 | 漢字 | バイナリ |
|---|---|---|---|---|---|
| 1 21×21 |
L | 40 | 24 | 10 | 17 |
| M | 33 | 20 | 8 | 14 | |
| Q | 25 | 15 | 6 | 11 | |
| H | 16 | 10 | 4 | 7 | |
| 2 25×25 |
L | 81 | 49 | 20 | 34 |
| M | 66 | 40 | 17 | 28 | |
| Q | 52 | 31 | 13 | 22 | |
| H | 33 | 20 | 8 | 14 | |
| 3 29×29 |
L | 131 | 79 | 33 | 55 |
| M | 100 | 60 | 25 | 42 | |
| Q | 81 | 49 | 20 | 34 | |
| H | 52 | 31 | 13 | 22 | |
| 4 33×33 |
L | 186 | 113 | 48 | 78 |
| M | 138 | 84 | 35 | 58 | |
| Q | 114 | 69 | 29 | 48 | |
| H | 76 | 46 | 19 | 32 | |
| 5 37×37 |
L | 253 | 154 | 65 | 106 |
| M | 191 | 116 | 49 | 80 | |
| Q | 157 | 95 | 40 | 66 | |
| H | 105 | 63 | 27 | 44 | |
| 6 41×41 |
L | 321 | 194 | 82 | 134 |
| M | 249 | 151 | 64 | 104 | |
| Q | 201 | 122 | 51 | 84 | |
| H | 133 | 81 | 34 | 56 | |
| 7 45×45 |
L | 402 | 244 | 103 | 168 |
| M | 311 | 188 | 80 | 130 | |
| Q | 253 | 154 | 65 | 106 | |
| H | 167 | 101 | 43 | 70 | |
| 8 49×49 |
L | 493 | 299 | 126 | 206 |
| M | 378 | 229 | 97 | 158 | |
| Q | 301 | 183 | 77 | 126 | |
| H | 203 | 123 | 52 | 85 | |
| 9 53×53 |
L | 585 | 354 | 150 | 244 |
| M | 441 | 267 | 113 | 184 | |
| Q | 369 | 223 | 94 | 154 | |
| H | 239 | 145 | 61 | 100 | |
| 10 57×57 |
L | 690 | 418 | 177 | 287 |
| M | 526 | 319 | 135 | 219 | |
| Q | 433 | 262 | 111 | 180 | |
| H | 291 | 176 | 74 | 121 | |
| 11 61×61 |
L | 800 | 485 | 205 | 333 |
| M | 608 | 368 | 156 | 253 | |
| Q | 493 | 299 | 126 | 205 | |
| H | 342 | 207 | 87 | 142 | |
| 12 65×65 |
L | 915 | 555 | 234 | 381 |
| M | 694 | 421 | 178 | 289 | |
| Q | 579 | 351 | 148 | 241 | |
| H | 390 | 236 | 100 | 162 | |
| 13 69×69 |
L | 1030 | 624 | 264 | 429 |
| M | 790 | 479 | 202 | 329 | |
| Q | 656 | 398 | 168 | 273 | |
| H | 454 | 275 | 116 | 189 | |
| 14 73×73 |
L | 1167 | 707 | 299 | 486 |
| M | 877 | 531 | 225 | 365 | |
| Q | 738 | 447 | 189 | 307 | |
| H | 498 | 302 | 127 | 207 |