Zebra Technologies S-300 Printer User Manual


 
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
2
3
4
5
^XA
^LH30,30
^FO20,10^AD^FDZEBRA^FS
^FO20,60^B3N,Y,20,N^FDAAA001^FS
^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
Operation
23