[ESC+2D30] QR Code (Model 2)

CL4NX CL6NX CL4NX-J CL6NX-J PW208/PW208m PW208NX/PW208mNX FX3-LX CT4-LX/HC4-LX PW4NX LR4NX-FA S84NX/S86NX CL4-SXR CL6-SXR

Hexadecimal code

ESC <1B>16
2D30 <32>16<44>16<33>16<30>16

Parameter

,a,bb,c,d(,ee,ff,gg)

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 (Model 2)

Format (Setup part)

<2D30>,a,bb,c,d(,ee,ff,gg)

  • Parameter

    a [Error Correction Level]

    = L: 7%

    = M: 15%

    = Q: 25%

    = H: 30%

    b [Size of one side of cell] = Valid Range: 01 to 99 dots

    * Specify more than 02 dots when head density is 12 dots/mm, otherwise scanner may have reading problem


    c [Data setup mode]

    = 0: Manual setup

    = 1: Automatic setup

    * Note: You need to change the method of specifying print data with this setting.

    d [Concatenation mode]

    = 0: Normal mode

    = 1: Concatenation mode


    Following parameter must be specified when specifying 1 (Concatenation mode) in Concatenation mode.
    Omit following parameter in normal mode.

    e [Number of partitions of concatenation mode] = Valid Range: 01 to 16

    * Number of partitions: Specifying how many QR code are to be concatenated divided by Concatenation mode.


    f [Sequential number partitioned by concatenation mode] = Valid Range: 01 to 16

    * Sequential number: Specifying what number is it of divided QR code.


    g [Concatenation mode parity data] = Valid Range: 00 to FF

    * Parity data: Specifying exclusive OR of all the print data in divided QR code with HEX characters.

Format (Data part)

Manual setup (Data setup mode)

<DS>k,n...n

* Use when input mode specification is Numeric mode, Alphanumeric mode and Kanji mode.

<DN>mmmm,n...n

* Use when specifying by binary.

Automatic setup (Data setup mode)

<DN>mmmm,n...n

* Change input mode automatically according to input data.

  • Parameter

    k [Input mode]

    = 1: Numeric mode

    = 2: Alphanumeric mode

    = 3: Kanji mode (Shift JIS Kanji)

    * Specify only when specifying Manual setup in Data setting mode.

    * There is binary specification other than above, but data specification command is different.


    m [Number of data] = Valid Range: 1 to 2953

    * Specify when specifying Automatic setup in Data setting mode or specifying binary specification in Manual setup.

    n [Print data] = Data

Format (Version)

<QV>pp

* Use when specifying the version.

  • Parameter

    pp [Version] = 00 to 40 (MODEL2)

    * Use when fix the size of QR symbol by specifying the version. When not specified, it will be specified automatically.
    It will be Auto when specifying 00. The parameter error doesn't arise in the range from 00 to 40.

    * Refer to [ESC+QV] QR Code Version for details.

Supplementary Explanation 1

  1. When specifying Kanji in <DN>, specify size that is 2 X number of Kanji characters.
  2. For <DN> in Automatic setup, when 80H to 9FH and E0H to FFH is specified as data, it is handed as Kanji mode, and cannot specify them as binary.
  3. Commands that allow data size specification and binary data specification (<DN>) will result in a command error if there is no ESC (0x1B) immediately after the specified amount of data.

Coding Example 1

Error correction level: 7%, Size of one side of cell: 05

Data setup mode: Manual setup, Concatenation mode: Normal


<A>
<V>100<H>200<2D30>,L,05,0,0
<DS>1,012345
<Q>2
<Z>
                    

Supplementary Explanation 2

  1. If the parameter other than the description is specified or number of print data is not match, print is not executed.
  2. Data specification command in data part varies according to parameter setup or specified data.

Coding Example 2

Error correction level: 7%, Size of one side of cell: 04

Mixed specification of Manual setup (Data setup mode)

In Manual setup, you can proceed specifying data in specified input mode (Numeric, Alphanumeric, Kanji, Binary).


<A>
<V>100<H>200
<2D30>,L,04,0,0
<DS>3,サトー
<DN>0010,0123456789
<DS>1,123
<Q>1
<Z>
                    

Supplementary Explanation 3

  1. Parameter part to be followed by Data part. Data part and data part should be specified in a row. When don't specify in a row, print result may not be secured.
  2. Total number of data (n) need to be less than 7000 bytes. Maximum number of blocks in data part specified in a row is 200.

Coding Example 3

Error correction level: 7%, Size of one side of cell: 05

Data setup mode: Manual setup, Concatenation mode: Normal, Version 5


<A>
<V>100<H>200<2D30>,L,05,0,0
<QV>5
<DS>1,012345
<DN>0004,6789
<Q>1
<Z>
                    

Note

  1. Specify <QV> command between <2Dxx> and <DN>/<DS>.
  2. When resulted in a parameter error, it will be handled in the same manner of no specification.
  3. It doesn't become a parameter error from 00 to 40. (Set the value within the range corresponding to each model)
    For MODEL2, the setting range is from 00 to 40.
  4. Sending the data exceeding the data size of specified version will result in error and QR code is not printed.

QR Code data size list (Model 2)

Version Error
Correction
Numeric Alpha-Numeric Kanji Binary
1
21×21
L 41 25 10 17
M 34 20 8 14
Q 27 16 7 11
H 17 10 4 7
2
25×25
L 77 47 20 32
M 63 38 16 26
Q 48 29 12 20
H 34 20 8 14
3
29×29
L 127 77 32 53
M 101 61 26 42
Q 77 47 20 32
H 58 35 15 24
4
33×33
L 187 114 48 78
M 149 90 38 62
Q 111 67 28 46
H 82 50 21 34
5
37×37
L 255 154 65 106
M 202 122 52 84
Q 144 87 37 60
H 106 64 27 44
6
41×41
L 322 195 82 134
M 255 154 65 106
Q 178 108 45 74
H 139 84 36 58
7
45×45
L 370 224 95 154
M 293 178 75 122
Q 207 125 53 86
H 154 93 39 64
8
49×49
L 461 279 118 192
M 365 221 93 152
Q 259 157 66 108
H 202 122 52 84
9
53×53
L 552 335 141 230
M 432 262 111 180
Q 312 189 80 130
H 235 143 60 98
10
57×57
L 652 395 167 271
M 513 311 131 213
Q 364 221 93 151
H 288 174 74 119
11
61×61
L 772 468 198 321
M 604 366 155 251
Q 427 259 109 177
H 331 200 85 137
12
65×65
L 883 535 226 367
M 691 419 177 287
Q 489 296 125 203
H 374 227 96 155
13
69×69
L 1022 619 262 425
M 796 483 204 331
Q 580 352 149 241
H 427 259 109 177
14
73×73
L 1101 667 282 458
M 871 528 223 362
Q 621 376 159 258
H 468 283 120 194
15
77×77
L 1250 758 320 520
M 991 600 254 412
Q 703 426 180 292
H 530 321 136 220
16
81×81
L 1408 854 361 586
M 1082 656 277 450
Q 775 470 198 322
H 602 365 154 250
17
85×85
L 1548 938 397 644
M 1212 734 310 504
Q 876 531 224 364
H 674 408 173 280
18
89×89
L 1725 1046 442 718
M 1346 816 345 560
Q 948 574 243 394
H 746 452 191 310
19
93×93
L 1903 1153 488 792
M 1500 909 384 624
Q 1063 644 272 442
H 813 493 208 338
20
97×97
L 2061 1249 528 858
M 1600 970 410 666
Q 1159 702 297 482
H 919 557 235 382
21
101×101
L 2232 1352 572 929
M 1708 1035 438 711
Q 1224 742 314 509
H 969 587 248 403
22
105×105
L 2409 1460 618 1003
M 1872 1134 480 779
Q 1358 823 348 565
H 1056 640 270 439
23
109×109
L 2026 1588 672 1091
M 2059 1248 528 857
Q 1468 890 376 611
H 1108 672 284 461
24
113×113
L 2812 1704 721 1171
M 2188 1326 561 911
Q 1588 963 407 661
H 1228 744 315 511
25
117×117
L 3057 1853 784 1273
M 2395 1451 614 997
Q 1718 1041 440 715
H 1286 779 330 535
26
121×121
L 3283 1990 842 1367
M 2544 1542 652 1059
Q 1804 1094 462 751
H 1425 864 365 593
27
125×125
L 3517 2132 902 1465
M 2701 1637 692 1125
Q 1933 1172 496 805
H 1501 910 385 625
28
129×129
L 3669 2223 940 1528
M 2857 1732 732 1190
Q 2805 1263 534 868
H 1581 958 405 658
29
133×133
L 3909 2369 1002 1628
M 3035 1839 778 1264
Q 2181 1322 559 908
H 1677 1016 430 698
30
137×137
L 4158 2520 1066 1732
M 3289 1994 843 1370
Q 2358 1429 604 982
H 1782 1080 457 742
31
141×141
L 4417 2677 1132 1840
M 3486 2113 894 1452
Q 2473 1499 634 1030
H 1897 1150 486 790
32
145×145
L 4686 2840 1201 1952
M 3693 2238 947 1538
Q 2670 1618 684 1112
H 2022 1226 518 842
33
149×149
L 4965 3009 1273 2068
M 3909 2369 1002 1628
Q 2805 1700 719 1168
H 2157 1307 553 898
34
153×153
L 5253 3183 1347 2188
M 4143 2506 1060 1722
Q 2949 1787 756 1228
H 2301 1394 590 958
35
157×157
L 5529 3351 1417 2303
M 4343 2632 1113 1809
Q 3081 1867 790 1283
H 2361 1431 605 983
36
161×161
L 5836 3537 1496 2431
M 4588 2780 1176 1911
Q 3244 1966 832 1351
H 2524 1530 647 1051
37
165×165
L 6153 3729 1577 2563
M 4775 2894 1224 1989
Q 3417 2071 876 1423
H 2625 1591 673 1093
38
169×169
L 6479 3927 1661 2699
M 5039 3054 1292 2099
Q 3599 2181 923 1499
H 2735 1658 701 1139
39
173×173
L 6743 4087 1729 2809
M 5313 3220 1362 2213
Q 3791 2298 972 1579
H 2927 1774 750 1219
40
177×177
L 7089 4296 1817 2953
M 5596 3391 1435 2331
Q 3993 2420 1024 1663
H 3057 1852 784 1273