QR code missing first three characters when using ZPL language

Article ID: 24289551

Issue / Question

Why is the QR code missing the first three characters? What changes needs to be made to the ZPL code to get the correct QR code to be printed

Applicable To

ZPL compatible Printers using the QR Code Excludes: 2824 Series, 2844 Series, S4M (E53 Firmware Version), 888 DD/TT Series, MZ Series, ZQ110, EM220, EM220II

Resolution / Answer

When customer using ZPL to create a QR code, customer mentions that the first three characters are missing from the QR code that is generated.

For example, sample code below
 

^XA
^FO100,100
^BQN,2,10
^FDTESTING^FS
^XZ


Customer would expect the code above to generate a QR code that, when scanned, shows the word TESTING. However, the printed QR code, when scanned, shows TING instead.

Image of the printed QR code below


The reason this happens is due to the missing QR Switches that is formatted into the ^FD field.

There are 4 switch fields that are allowed, some with associated parameters and some without. Two of these fields are always present, one is optional, and one’s presence depends on the value of another. The switches are always placed in a fixed order. The four switches, in order are:

  • Mixed mode <D>iijjxx,Optional (note that this switch ends with a comma “,”)
  • Error correction level <H, Q, M, L>Mandatory
  • Data input <A, M>,Mandatory (note that this switch ends with a comma “,”)
  • Character Mode <N, A, Bdddd, K>Conditional (present if data input is M)


So, for the example code above, the correction would be to add the QR switches into the ^FD field.

Example below
 

^XA
^FO100,100
^BQN,2,10
^FDQA,TESTING^FS
^XZ


Adding QA, right after ^FD, should fix this issue.

Image of the printed QR code below


For more information in regards to printing QR codes using ZPL, you may refer to the zpl manual


 

+ Applicable Products

  • 105SLPlus Industrial Printers
  • 105SLPlus Industrial Printers
  • 110Xi4 Industrial Printer
  • 140Xi4
  • 140Xi4 Industrial Printer
  • 170Xi4 Industrial Printer
  • 220Xi4 Industrial Printer
  • All Surface RFID Label Solution
  • Desktop Printers
  • EZ320 Mobile Printers
  • Food Safe Card Solution
  • G-Series GC Desktop Printers
  • G-Series GK Desktop Printers
  • G-Series GX Desktop Printers
  • GC420d Desktop Printer
  • GC420t Desktop Printer
  • GK420 Healthcare Desktop Printers
  • GK420d Desktop Printer
  • GK420d Healthcare Desktop Printer
  • GK420e
  • GK420t Desktop Printer
  • GK420t Healthcare Desktop Printer
  • GX420Rx Desktop Printer
  • GX420d Desktop Printer
  • GX420t Desktop Printer
  • GX430d Desktop Printer
  • GX430t Desktop Printer
  • HC100 Wristband Printer
  • HC100 Wristband Printer
  • KR203 Kiosk Receipt Printer
  • KR203 Kiosk Receipt Printer
  • KR403 Kiosk Receipt Printer
  • KR403 Kiosk Receipt Printer
  • P100i
  • P110i
  • P110m
  • P110m
  • P120i
  • P330i Card Printer
  • P430i Card Printer
  • P4T Mobile Printers
  • P4T Mobile Printers
  • P630i Card Printer
  • P640i Card Printer
  • QL Series Mobile Printers
  • QL320 Mobile Printer
  • QL420 Mobile Printer
  • QLn Series Healthcare Mobile Printers
  • QLn Series Mobile Printers
  • QLn220 Healthcare
  • QLn220 Mobile Printer
  • QLn320 Healthcare
  • QLn320 Mobile Printer
  • QLn420 Mobile Printer
  • QuikCard ID Standard Solution Bundles
  • QuikCard Professional Solution Bundles
  • QuikCard Solutions Bundles
  • R110Xi4 RFID Printer
  • RP4T RFID Printers
  • RP4T RFID Printers
  • RW 220 Mobile Printer
  • RW 420 Mobile Printer
  • RW 420 Print Station
  • RW Series Mobile Printers
  • RZ400
  • RZ600
  • S4M
  • S4M Series
  • TTP 2000 Series Kiosk Receipt Printers
  • TTP 2000 Series Kiosk Receipt Printers
  • TTP 2100 Series Kiosk Receipt Printers
  • TTP 2110 Kiosk Printer
  • TTP 2130 Kiosk Printer
  • TTP 7030 Kiosk Receipt Printer
  • TTP 7030 Kiosk Receipt Printer
  • TTP 8000 Series Kiosk Receipt Printers
  • TTP 8200 Kiosk Printer
  • TTP 8300 Kiosk Printer
  • Value Class Card Printer
  • Xi Series Industrial Printers
  • Z Series Industrial Printers
  • ZC Series
  • ZC100
  • ZC10L Card Printer
  • ZC150
  • ZC300-LA-APAC
  • ZC350
  • ZD120
  • ZD200 Series
  • ZD220
  • ZD220 Series
  • ZD220D
  • ZD220D-HC
  • ZD220T
  • ZD220T-HC
  • ZD230
  • ZD230 Series
  • ZD230D
  • ZD230D-HC
  • ZD230T
  • ZD230T-HC
  • ZD410 Series
  • ZD410-HC
  • ZD410D
  • ZD420 Series
  • ZD420-D-T
  • ZD420-D-T-HC
  • ZD420-HC
  • ZD420C
  • ZD420D
  • ZD420D-HC
  • ZD420T
  • ZD420T-HC
  • ZD500 Desktop Printer
  • ZD500 Desktop Printer
  • ZD500R RFID Printers
  • ZD500R RFID Printers
  • ZD510-HC Wristband Printer
  • ZD600-HC
  • ZD620 Series
  • ZD620-D-T
  • ZD620-D-T-HC
  • ZD620D
  • ZD620D-HC
  • ZD620T
  • ZD620T-HC
  • ZD888D
  • ZD888T
  • ZD888T-HC
  • ZE500R RFID Print Engine
  • ZE500R RFID Print Engine
  • ZM400
  • ZM600
  • ZP888
  • ZQ120
  • ZQ220
  • ZQ300 Series
  • ZQ300 Series Inside
  • ZQ300 Series Outside
  • ZQ310
  • ZQ320
  • ZQ500 Series Mobile Printers
  • ZQ500 Series RFID Printers
  • ZQ510 Mobile Printer
  • ZQ520 Mobile Printer
  • ZQ520 RFID
  • ZQ520 RFID
  • ZQ600 Series
  • ZQ600-HC Series
  • ZQ610
  • ZQ610-HC
  • ZQ620
  • ZQ620-HC
  • ZQ630
  • ZQ630 RFID
  • ZQ630 RFID
  • ZR128 Mobile Printers
  • ZR138
  • ZR300 Series Mobile Printers
  • ZR318 Mobile Printers
  • ZR328 Mobile Printers
  • ZR338 Mobile Printers
  • ZR600 Series Healthcare Mobile Printers
  • ZR600 Series Mobile Printers
  • ZR628
  • ZR638
  • ZR658
  • ZR658-HC
  • ZR668
  • ZR668-HC
  • ZT200 Series Industrial Printers
  • ZT210 Industrial Printer
  • ZT220 Industrial Printer
  • ZT230 Industrial Printer
  • ZT400 Series Industrial Printers
  • ZT400 Series RFID Printers
  • ZT410 Industrial Printer
  • ZT410 RFID Industrial Printer
  • ZT411
  • ZT411 RFID
  • ZT420 Industrial Printer
  • ZT420 RFID Industrial Printer
  • ZT421
  • ZT421 RFID
  • ZT500 Industrial Printers
  • ZT510 Industrial Printer
  • ZT600 Series Industrial Printers
  • ZT600 Series RFID Printers
  • ZT610 Industrial Printer
  • ZT610 RFID Industrial Printer
  • ZT620 Industrial Printer
  • ZT620 RFID Industrial Printer
  • ZXP Series 1 Standard Card Printers
  • ZXP Series 1 Standard Card Printers
  • ZXP Series 3 Card Printers
  • ZXP Series 3 Professional Card Printers
  • ZXP Series 3 with Security Enclosures
  • ZXP Series 3C Card Printers (China Only)
  • ZXP Series 7 Card Printer
  • ZXP Series 7 High Performance Card Printers
  • ZXP Series 7 Pro High Performance Card Printers
  • ZXP Series 7 with Laminator
  • ZXP Series 8 Card Printer
  • ZXP Series 8 High Security Retransfer Card Printer
  • ZXP Series 8 Secure Issuance Card Printer
  • ZXP Series 9 Card Printer
  • iMZ Series Mobile Printers
  • iMZ220 Mobile Printer
  • iMZ320 Mobile Printer
  • zp450 Desktop Printer