
Learning ZPL
Basic ZPL Exercises and Examples
68
P1026208-001 Rev. B Software Integrator Guide 10/29/2010
Sending ZPL Files to the Printer
Use the Windows driver from the Tools tab. Choose Action - Send Files. Optionally you
can also use ZebraNet Bridge or ZDownloader (Firmware and File downloader.
If you are using the serial interface, DOS copy commands will also work.
Exercise 1 • This exercise shows you how to specify a location for an entered name.
1. Print your name on the receipt.
2. Start by printing just your name on the receipt. Use this format as a model:
Important • Your name goes where you see
xxxxxxxxxxx in the second line of code.
3. Send this format to the printer:
4. When the receipt prints correctly, alter the first number after the ^FOx. See how that
change affects the print position. Alter the second number after the
^FO50,y and see
how that the print position.
x = horizontal and y = vertical
1
Every format starts with the
^XA command
2
^FO (Field Origin) command
3
^A (Scalable/Bitmap Font) command
4
^FD (Field Data) command
5
^FS (Field Separator) command - needed to print
6
^CN (Cut Now) command - Full cut
7
^PN (Present Now) - moves receipt to present position to wait for pull on
the receipt or the next receipt to print. Note: Using the default kiosk print
settings.
8
Every format ends with the
^XZ command
^XA
^FO50,50^ADN,36,20^FDxxxxxxxxxx
^FS
^CN1
^PN0
^XZ
Comentarios a estos manuales