[ESC+QV] QR Code Version
Hexadecimal code
| ESC | <1B>16 |
|---|---|
| QV | <51>16<56>16 |
Parameter
aa
Initial value
aa=00
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 is in effect until a new specification is made. |
| Valid range between items | The set parameter becomes a default value in the next item <A>. |
Function
Specifying any QR code version can print the code with fixed cell size.
When not specified, it becomes the auto setting.
Format
<QV>aa
-
Parameter
aa [Version number]
= Valid range : 00 to 40 (Specifying this range doesn't become a parameter error. An error may arise for some QR code types, while analyzing the image.)
= Print valid MODE1 : 00 to 14 (00: Auto setting)
= MODE2 : 00 to 40 (00: Auto setting)
= Micro QR : 00 to 04 (M1 to M4) (00: Auto setting)
Coding example 1
MODEL 1, Error correction: H, Cell size font: 05, Manual setting, Normal mode,
Version 14
<A>
<V100><H100><2D31>,H,05,0,0
<QV>14
<DN0011>,0123456789X
<Z>
Coding example 2
MODEL 2, Error correction: H, Cell size font: 05, Manual setting, Normal mode,
Version 35
<A>
<V100><H100><2D30>,H,05,0,0
<QV>35
<DN0011>,0123456789X
<Z>
Coding example 3
Micro QR, Error correction: L, Cell size font: 05, Manual setting,
Version M3
<A>
<V100><H100><2D32>,H,05,0
<QV>3
<DN005>,01234
<Z>
Supplemental explanation
- MODEL1: up to 17, MODEL2: up to 40, Micro QR: up to 4
The valid parameter range is from 0 to 40 and it varies depending on the QR code type. - For Micro QR, 1 to 4 correspond with M1 to M4.
- Specifying <QV> 0 becomes Auto. (Default: Compatible with the existing code)
- Sending the data exceeding the data size of specified version will result in error and QR code will be not printed.
- Specify the <QV> command in between <2Dxx> and <DN>/<DS>.
- It doesn't affect other than QR code.
- When resulted in a parameter error, it will be handled in the same manner of no specification.
- 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.
About the version
Refer to the QR code specification for details.
Version 1: 21 x 21 cells, Version 2: 25 x 25 cells, ..., Version 40: 177 x 177 cells.
For Micro QR, M1 to M4 = 11 x 11 to 17 x 17 cells, smaller than MODEL1/2.