QR Code 4610 v1
QR Code 4610 v1
RS485 syntax:
X'1D;4F;n1;n2;n3;data;00
BASIC syntax:
PSTR1$=CHR$(1DH)+CHR$(4FH)+N1+N2+N3
PSTR2$=DATA+CHR$(00H)
PSTRING$=PSTR1$+PSTR2$
where:
n1 Encoding Mode Parameter
00 Byte - Encodes lower case letters, text double-byte characters, binary data and 8
bit values.
The command will be rejected if data is outside the supported range for this
mode.
02 Numeric Mode - This mode encodes data from the decimal digit set (0 - 9) (byte
values X’30’ to X’39’).
The command will be rejected if data is outside the supported range for this
mode.
03 Kanji Mode - This mode encodes Kanji characters. Note: The amount of data
needs to be an even number. The supported range of Kanji characters are from
X’8140’ to X’9FFC’ and from X’E040’ to X’EBBF’. Characters outside these
ranges will be rejected.
04 Extended Channel Interpretation (ECI) Mode – This mode allow the encod-
ing of character sets different than the default.
05 Mixing Mode – This mode allows the printer to encode data using different
modes. Currently works with numeric, alpha numeric, byte, and Kanji characters.
In this mode, printer will decide which type of characters and encode them accord-
ingly.
n2 Error Correction Level
00 L - 7% recovery
01 M - 15% recovery
02 Q - 25% recovery.
03 H - 30% recovery.
n3 ECI value – valid only if the application chooses the ECI mode
Note – To reserve the encoded characters, the firmware will check for the data in Numeric
and Alphanumeric mode. If any byte mode character is found, all data will be encoded in
byte mode.
data The byte representation of the characters to be encoded. This field has a
maximum of 1000 bytes. Sending more than 1000 bytes will cause a command re-
ject. Note that there is also a maximum number of bytes that can be encode per
mode. See below.
Remarks: Only Supported on the 1NR/2xR printers with firmware level 0F.00 or above.
For RS485 or USB; If this command is longer than one I-Frame it may be divided into sev-
eral I-Frames using a continuation command. See the Continuation of previous command
in the 4690 OS Application Interface Specification for 4610 Printers manual.
• Valid only at the beginning of a line.
• Printing will not start until a X'00' is received.
• This command will increment status byte 6.
• The maximum number of characters to be encoded is
Example – With level H error correction, printer can encode 945 numeric charac-
ters or 566 Alpha numeric characters, 393 bytes, or 242 Kanji characters.
Notes:
• This function is only supported in the customer receipt station.
• The data length is capped at 1000 bytes. Sending more will result in a command
reject. This becomes the maximum for characters to be encoded for error correc-
tion levels that support more than 1000 characters. Kanji Mode uses 2 bytes per
character.
• The scanning accuracy depends on the scanner and decoding software. Scanning
becomes more difficult as the amount of data increases. It is recommended to
keep the amount of data lower than 75% of the maximum number of characters
allowed for each mode.
Error Conditions:
• If an image can not be printed; Status byte 7, bit 2 will be set. This may happen
when the image is too big to print. Try decreasing the Error Correction level.
Error X’80901123’
• The command will be rejected if the data format is not correct for the selected
encoding mode. Error X’80900009’
• The command will be rejected if the maximum number of characters that can be
encoded for the selected mode is exceeded. Error X’80900009’
2 Dependencies
Print QR Barcode command supported on 4610 models 1NR, 2NR, and 2CR at firmware
level 0F.xx or above.
3 Known Issues
Due to an error in the current (13.01) printer firmware level, status byte 7 bit 2 is not being
set if the image is too big to print, thus the X’80901123’ return code is not provided to the
application. Instead a partial image is printed. This will be corrected in a future firmware
level.