0
votes

I am attempting to encode the EPC of a GS1 RFID using ZPL statements on a Zebra 410R printer.

First, consider the following ZPL :

^FD51,0,6,111111,2,33,444^FS

What I am attempting to do, is replace the 444 with a value stored in a field number (^FN).

^XA 
^DFE:RFID^FS
^RB96,8,3,3,20,24,10,28
^RFW,E
^FD51,0,6,111111,2,33,^FN11"Enter Barcode"^FS
^XZ

So, How do I replace the '444' portion of the field data with the value stored in the field number (^FN11) ?

Thank you in advance.

1

1 Answers

1
votes

Well, maybe a little bit too late, but to anyone, who may have the same question - DF is a pair command, you need to pair it with XF. DF is Download format - here you use the varible ( FD, FN). XF is Recall Format - here you declare the variables. So, your code just miss the definition of variable, here is the whole code: Your code:

^XA 
^DFR:RFID^FS
^RB96,8,3,3,20,24,10,28
^RFW,E
^FD51,0,6,111111,2,33,^FN11"Enter Barcode"^FS
^XZ

^XA
^XFR:RFID
^FN11^FN444^FS
^XZ