Star Micronics Line Thermal/Dot Printer Printer User Manual


 
Rev. 0.00
3-140
STARLIneModeCommandSpecications
3-11) 2-dimensional Bar Codes QR Code Command Details
* QR code is a registered trademark of DENSO WAVE Incorporated.
This command prints 2-dimensional bar codes of QR code.
Commands for 2-dimensional bar codes QR code are separated into the following four functions.
1) Barcodetypesetting (<ESC><GS>“y”“S”)
2) Barcodedatasetting (<ESC><GS>“y”“D”)
3) Page mode setting (Reserved)
4) Barcodeprinting (<ESC><GS>“y”“P”)
5) Getbarcodeexpansioninformation (<ESC><GS>“y”“I”)
The details of the functions are outlined below.
1) Bar code type setting
These commands set the bar code type.
These are all set to default. Only use them if you wish to change them. (Refer to following details for settings.)
Specifymodelusing<ESC><GS>“y”“S”“0.”
Currently supported models are model 1 and model 2. To improve tolerance to distortion when codes are large on
model 2, an alignment pattern has been added to the structure.
Specifytheerrorcorrectionlevelusing<ESC><GS>“y”“S”“1.”
It is possible to read QR code even part of the data is corrupted, using error correction.
If this level is raised, the bar code size is increased because there is more backup information.
Specifythesizeofthecell(onesquareregionthatcomposestheQRcode)using<ESC><GS>“y”“S”“2.”
The vertical and horizontal sizes for the QR code are equal length squares, but the size of the bar code image gener-
ated is determined by the cell size.
See Appendix 7 for details on the actual printed QR code size.
These are individual settings, so the following errors may occur even if there are no problems. In such cases, the bar
codewillnotbegenerated,andthe(4)printcommand((<ESC><GS>“y”“P”)willbeignored,andanerrorcodewill
be returned with (5) get bar code expansion information.
• An error occurs when generating the bar code by the combination of settings.
• When the print data exceeds the currently set print region.
Therefore,itisrecommendedtousethe(5)Getbarcodeexpansioninformationcommand(<ESC><GS>“y”“I”)asa
means for checking for these errors prior to printing.
Cell
Alignment Pattern