Zebra ZPL-II Code 128 barcode with 3 Application Identifiers, including Serial Number
Posted on 2013-10-30
I'm working on a label that goes on cases of our product, and the barcode needs to be Code 128 and have 3 elements:
- GTIN (Application Identifier 01)
- Batch Number (Application Identifier 10)
- Serial Number (Application Identifier 21)
In particular, I'm having trouble with the Serial Number. We print thousands of these labels at a time, and the .prn files our software is generating are huge because it transmits multiple lines of code for each label.
I know the Zebra printers we use (140XiIII Plus) are capable of incrementing serial fields internally, which means that the software could send a tiny file with one copy of the label plus a quantity to print, and just let the printer increment the serial numbers. However, I can't figure out the correct syntax to make that work.
Here is a sample line in ZPL-II code that our software currently generates for the barcode:
I'm thinking that what I want is something like this (but this doesn't work):
Can anyone provide the correct syntax?