Zebra ZPL code mixed mode QR data

2.5k Views Asked by At

This is my complete ZPL code for labels I will be printing. This contains mock data, as the finished code will be concatenated in to Excel for over 1000 labels.

^XA
^FO50,30
^ADN,60,50
^FD300957^FS
^FO50,170
^ADN,40,25
^FDGUIDE PIN PANELBOARD^FS
^FO50,240
^ADN,25,15
^FDPOU Location^FS
^FO50,280
^ADN,40,25
^FDD2P^FS
^FO50,370
^ADN,25,15
^FDSupply Location^FS
^FO50,410
^ADN,40,25
^FDW7E02^FS
^FO50,490
^ADN,40,25
^FDBin Qty^FS
^FO50,540
^ADN,50,25
^FD50^FS
^FO650,30
^ADN,25,15
^FDSTORES^FS
^FO650,70
^ADN,25,15
^FDKBLINE^FS
^FO650,110
^ADN,28,15
^FDD2P^FS
^FO450,250^BQ,2,10
^FDD03048F,LA,N300957,ACAGE,AW7E02,ASTORES,AKBLINE,N50^FS
^XZ

The line in question is

^FDD03048F,LA,N300957,ACAGE,AW7E02,ASTORES,AKBLINE,N50^FS

What I need my QR code to do is be in mixed mode with automatic input and take the 6 field entries found in the part "N300957,ACAGE,AW7E02,ASTORES,AKBLINE,N50" and plug them in to separate fields when scanned. The data is in the order the fields are in when tabbed through on the inventory form. At this time, when scanned, the QR sends all the data to only the first field in a long string. Does anyone know how to get this working?

2

There are 2 best solutions below

6
On

Use \09 for Horizontal Tab and \0D for Carriage Return like this:

^FDD03048F,LA,N300957\09ACAGE\09AW7E02\09ASTORES\09AKBLINE\09N50\0D^FS

You also might need to specify ^FH\, here is full example that I have used in the past:

^XA
^FO343,295
^BQN,2,4^FH\^FDLA,Field1\09Field2\09Field3\0D^FS
^PQ1,0,1,Y
^XZ
0
On

_0D_0A to get to next line in QR Code.