
Chapter 3: Programming Commands 87
Bar codes
Thesecommandsformatandprintbarcodesandaredescribedinorderoftheirhexadecimalcodes,
withtheexceptionoftheQRcodeoverview,whichisdescribedintheorderofuseincreatingtwo-
dimensionalQRcodes.
These commands describe operation for 80mm paper.
QR code Overview
QRcodeisa2-dimensionalmatrixsymbologyconsistingofanarrayofnominallysquaremodulesarrangedinanoverall
squarepatternusingtheQRsymbology.Auniquepatternatthreeofthesymbol’sfourcornersassistsindeterminingthe
barcodesize,position,androtation.
AseriesofsevencommandsarerequiredtocreateandprintQRcodes.
1.SelectmodelforQRcode 1D286B04003141n1n2
2.SetthesizeforQRmodule 1D286B03003143n
3.Setdataparsingmode 1D286B03003144m
4.Selecterrorcorrectionlevel 1D286B03003145n
5.Storesymboldata 1D286BqLqH315030f1…fk
6.Printsymboldata 1D286B0300315130
7.TransmitQRcodeprintsize 1D286B0300315230
The details of each command are described below.
Note: The settings for model, size of module, and error correction level are effective until the printer is reset, or the power
is turned off.
Select model for QR code
ASCII GS ( k EOT NUL 1 A n1 n2
Hexadecimal 1D 28 6B 04 00 31 41 n1 n2
Decimal 29 40 107 4 0 49 65 n1 n2
Value of n1: 31h = Selects model 1
32h = Selects model 2 (default)
Value of n2: 00h (default)
Thiscommandspeciestheoriginalversion(m=1),ortheenhancedformofthesymbology(m=2).Model2isthe
recommended model.
Set size for QR code module
ASCII GS ( k ETX NUL 1 C n
Hexadecimal 1D 28 6B 03 00 31 43 n
Decimal 29 40 107 3 49 67 n
Value of n: 01h ≤ n ≤ 10h
Default: 03h
ThiscommandsetsthesizeoftheQRmoduleton dots.
Comentarios a estos manuales