Zebra ZPL2 Samples
Zebra printers currently use the ZPL2 programming language which uses the carrot (^) symbol prefix.
A sample ZPL2 form file that could be used in System Five is shown below:
This form file creates the following label:
- ^XA Indicates the start of label format.
- ^LH sets the label home position (55 dots to the right, 30 dots down from the top edge of the label).
- ^FO20,10 Sets the field origin 20 dots to the right and 10 dots down from the home position defined by the ^LH instruction.
- ^CFD Sets the height and width parameters for font type D.
- ^FD Start of Field Data.
- Company Name. Actual Field Data. Place your company name here. For this example, we are using the Name "Seaview Electronics"
- ^FS End of Field Data.
- FO20,60 Sets the field origin 20 dots to the right and 60 dots down from the home position defined by the ^LH instruction.
- ^AD Select font "D".
- FD Start of Field Data.
- <DESCRIPTION > Part Description acquired from System Five.
- FS End of Field Data.
- ^FO40,160 Sets the Field Origin 40 dots to the right and 160 dots down from the home position defined by the ^LH instruction.
- ^BY2,2.0 Barcode Size. To decrease size change from a 2 to 1.
- ^BC Select Code 128 Barcode.
- N=Normal Orientation
- 100=Barcode Height.
- Y=Print Interpretation Line. Default is Y.
- N=Print Interpretation Line above Code. Default is N.
- N=UCC Check Digit. Default is N.
- N=Mode. Default value is N, no mode selected.
- ^FD=Start of Field Data.
- <PART, -1>=Part number of item obtained from System Five.
- ^FS=End of Field Data.
- ^XZ=End of label Format.
< Return to: Sample List