
55
ZPL Basics
The ZPL Format (Receipt Form or Template)
10/29/2010 Software Integrator Guide P1026208-001 Rev. B
A secondary benefit of organizing your ZPL format code will be improving the readability
of the code to isolate functional groups and common behaviors for simplifying code. When
creating multiple receipts formats, common elements can be isolated visually and with
common text file compare tools available with many text or code editors.
Figure 5-5 • Receipt Format Structure
Table 5-3 • ZPL Commands and Configuration Receipt Callout Cross-Reference
Command Name Description
1
^DF
Download Format Downloads format as ZPL code for recall
^XF
Format Recall Recalls stored ZPL code - see ^DF
2
~DY
Download Object Download Object (Normally not used in
format)
3a
^MU
Set Units of Measure Sets Dots (default), Inch, Millimeters for ZPL
~SD
Set Darkness Sets darkness - Default 20 for kiosk printers
^PR
Print Rate Sets the print speed - Default 152.4mm/s
(max.)
^ML
Max. Label Length Sets max. receipt (and image) length. Should
be at minimum two (2) times the ^LL setting.
^MN
Media Tracking Specifies media type and auto-calibration
mode.
3b
^MM
Print Mode Sets media handling after printing. Interacts
with image map and receipt features.
^XA – Start format command.
1. Download and recall of stored formats
and graphics.
2. Direct import of graphics and fonts for
single use*.
3. Commands persistent between receipts.
a. General print and command settings
b. Media handling and behaviors
c. Media print size
4. Commands that describe the image map.
5. Initial use of commands that set
global parameters for objects.
6. Commands for placing objects in the
image map to print.
7. Print control commands - includes some
print/media handling behaviors and
saving format as graphic.
^XZ – End format command.
* Not a recommended practice for optimal print and data processing speed. ZDesigner does
this because it does not know if the graphic or font is going to be reused in subsequent receipts.
Single use graphics or fonts should also be immediately deleted from the printer memory.
Kommentare zu diesen Handbüchern