Thursday, August 4, 2016

Zebra ZPL Sample Barcode

Zebra Label Printer Sample - ZPL Language

Format 1: Simple Text and a Barcode

Line#                  Type this label format:
1                         ^XA
2                         ^LH30,30
3                         ^FO20,10^AD^FDZEBRA^FS
4                         ^FO20,60^B3N,Y,20,N^FDAAA001^FS
5                         ^XZ

Line #1: Indicates start of label format.

Line #2: Sets label home position (in dots) from the upper left-hand corner of the label.

Line #3: Sets field origin, selects font "D", defines field data as "ZEBRA".

Line #4: Sets field origin, selects bar code Code 39, sets barcode height at 20 dot rows,defines field data for bar code as "AAA001".

Line #5: End of label format.

No comments: