I'm trying to code a GS1-compliant QR Code in ZPL which will include a number of application identifiers:
VAR. COUNT (30) 18099999
CUST. PART NO. (241) 1184174
BATCH/LOT (10) MFATA00001
INTERNAL (91) EA
I don't understand how to embed the FNC1 character within the ^FD
string when using ^BQ
to create a QR Code.
Below is my first attempt. When creating a GS1-128 barcode, I would use the >8
character to denote variable-length fields.
^FX Test^FS
^XA^MCY^XZ
^XA^LH0,65
^LH0,0^FS
^BQN,2,10^FD>;>83018099999>82411184174>810MFATA00001>891EA^FS
^PQ1,0,0,N
^XZ
This creates a QR Code that returns the following string when scanned, but is not recognised as GS1 compliant:
11611193018099999>82411184174>810MFATA00001>891EA
How do I configure the ^FD
field to enable the FNC1 character?
EdHayes3's answer is just great.
As specified by Zebra in a
^BX
the escape character is the underscore and the subsequent number defines what kind of FNC is used.FNC4 is not supported according to how I understand the Zebra documentation.
The only thing I do not entirely agree with is escaping every GS1 AI since the most common ones except Lot/Batch number have a fixed length. In other words, I do not think that it is necessary to escape for example the GTIN. Though, you probably have to keep in mind to pad it up with leading zeros in case of GTIN-12 or GTIN-13.