[ESC+2D33] SQR Code
Hexadecimal code
| ESC | <1B>16 |
|---|---|
| 2D33 | <32>16<44>16<33>16<33>16 |
Parameter
,a,bb,c,d
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
Specifies 2D barcode security QR code.
Format (Setting section)
<2D33>,a,bb,c,d
-
Parameter
a [Error correction level]
= L: 7%
= M: 15%
= Q: 25%
= H: 30%
b [Specifies the side of one cell] = Valid range: 01-99 (dots)
* Note that scanners may not be able to read correctly unless 02 dots or more is specified for head resolution 12 dots/mm
c [Data setting mode]
= 0: Manual setting
= 1: Automatic setting
* Note that data is specified differently depending on this setting.
d [Concatenated mode] = 0: Normal mode (fixed)
Format (Data section)
Specify encrypted key data
<DK>o...o
Automatically switches input mode depending on print data.
Manual setting (Data setting mode)
[Encrypted section]
<DR>k,n...n
* Used when input mode is numeric, alphanumeric and Kanji code.
<DJ>mmmm,n...n
* Used when specifying with binary.
[Unencrypted section]
<DS>k,n...n
* Used when input mode is numeric, alphanumeric and Kanji code.
<DN>mmmm,n...n
* Used when specifying with binary.
Automatic setting (Data setting mode)
[Encrypted section]
<DJ>mmmm, n...n
* Automatically switches input mode depending on input data
[Unencrypted section]
<DN>mmmm,n...n
* Automatically switches input mode depending on input data
-
Parameter
o [Encrypted key] = Encrypted key (16-digit fixed hexadecimal)
* Please set this only when encrypted key is specified in Data setting mode.
* This setting is fixed to a 16 digit hexadecimal. An error will occur when specified in any other way.
k [Input mode]
= 1: Numeric mode
= 2: Alphanumeric mode
= 3: Kanji mode (Shift JIS Kanji code)
* Please specify this setting only when Manual setting is specified in Data settings mode.
* Other than the above, you can specify binary mode. Note that the command to specify the data is different.
m [Number of data] = Valid range: 0001-0486
* This should be set when you specify Automatic setting or specifying binary in Manual setting in Data setting mode.
n [Print data] = Data
Supplementary Explanation 1
- Specify a size two times the number of Kanji characters when you specify Kanji with specifying <DN>, <DJ>.
- When you specify data 80H-9FH, EOH-FFH in <DN>, <DJ> in automatic setting, it will be treated as Kanji mode so you cannot specify it as binary.
- Security QR code does not support concatenated mode.
- Make sure to specify data in this order: key, encrypted section, and unencrypted section.
- Data read results will always be in the order of unencrypted section and encrypted section.
- If encrypted key is not specified with power on, the encrypted key will be "0000000000000000".
- In case if an error occurs by specifying encrypted key, the last specified encrypted key will be applied.
- QR code is printed when you specify only the unencrypted section in Data specification and not specifying the Encrypted section. However QR code will not be printed when you specify only the Encrypted section, without specifying the Unencrypted section.
- 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 sample 1
Error correction level: 7%, size of the side of a cell: 05
Data setting mode: Manual setting
<A>
<V>100<H>200
<2D33>,L,05,0,0
<DK>0123456789ABCDEF
<DK>1,012345
<DS>1,012345
<Q>2
<Z>
Supplementary Explanation 2
- Printer will not print if you specify parameters other than written here, or if the number of print data doesn't match.
- For Data section, different data specification commands are used depending on the Parameter section or the data that was specified.
Coding sample 2
Error correction level: 7%, size of the side of a cell: 04
This is a mixed setting with manual setting (data setting mode).
In manual setting, you can continue to specify the data in the input mode specified in Data section (numeric, alphanumeric, Kanji and binary)
<A>
<V>100<H>200
<2D33>,L,04,0,0
<DK>1234567890ABCDEF
<DR>3,株式会社
<DJ>0010,0123456789
<DR>1,123
<DS>3,サトー
<DN>0010,0123456789
<DS>1,123
<Q>1
<Z>
Supplementary explanation 3
- Specify Data section after Parameter section. Specify the Data section and Data section continuously. It may not print correctly if you don't specify them continuously.
- When specifying this, make sure to that the total number of data (n) is 7000 bytes or less for the data section. The maximum number of blocks to specify continuously in the Data section shall be up to 200 blocks.
Supplementary explanation per model: PW2 series
- Support only PW208/PW208m, PW208NX/PW208mNX (Japan)
Supplementary explanation per model: FX3-LX series
- Support only FX3-LX (Japan)
Supplementary explanation per model: CT4-LX/HC4-LX series
- Support only CT4-LX (Japan)/HC4-LX
Supplementary explanation per model: CL4-SXR/CL6-SXR series
- Support only CL4-SXR/CL6-SXR (Japan)