Operation

Sample ZPL II Label Formats

ZPL II® is Zebra Technologies Corporation’s Zebra Programming Language II label design language. ZPL II lets you create a wide variety of labels from the simple to the very complex, including text, bar codes, and graphics.

This section contains three sample label formats for you to begin experimenting with. It is not intended as an introduction to ZPL II. To learn about ZPL II, send in the request card at the beginning of this book for a free copy of the ZPL II Programming Guide.

For each format, do the following:

1.Save the file.

2.Copy the file to the printer.

Set-up the printer and turn the Power ON.

Use a text editing program (ex: Windows Write or DOS Editor) and type in the label format exactly as shown in the sample label format shown below.

Save the file in a directory for future use. Use the extension “ . zpl” .

Copy the file to the Zebra Stripe Printer.

Note: Typically, computers running DOS use the “COPY” command to send a file to the Zebra printer. For example, if your file name is “format1.zpl” then type, “COPY FOR- MAT1.ZPL COM1”.

3.Compare your results with those shown. If your printout does not look like the one shown, confirm that the file you created is identical to the format shown, then repeat the printing procedure. If nothing prints, refer to Chapter 1 to make sure your system is set up correctly, otherwise refer to Chapter 4, “ Troubleshooting and Diagnostics” .

Format 1: Simple Text and a Barcode

Line

Type this label format:

You’ll get this printout:

#

 

 

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.

2

23

Page 31
Image 31
Zebra Technologies S-500 manual Sample ZPL II Label Formats, Format 1 Simple Text and a Barcode, Type this label format