
53
ZPL Basics
The ZPL Command
10/29/2010 Software Integrator Guide P1026208-001 Rev. B
Format (^- Caret) Command
Format commands form a template of a receipt (or label). These commands provide
instructions to define the receipt (or label’s) layout and handling.
• Physical properties: length, width, media type, etc.
• Object placement: origin, orientation, reference point etc.
• Type of object: simple graphic, logo graphic, text, and bar code,
• Text and data: font selection, locale, character sets, variables, data encoding etc.
• Prints the format (
^XZ and adding ^PQ to print multiple copies)
• Manage memory
• Code commenting (
^FX)
• Recall stored graphics (
^XG) or other stored formats (^XF)
The basic properties of format commands are:
• Format commands are always preceded by the caret (
^) character.
• Format commands are intended to be run within formats (forms), between the
Start Format (
^XA) and the End Format (^XZ). The ^FX (Comment) is the
exception to this rule. It can be used outside of a format (form).
• All format commands are processed in the order received.
• Most format instructions are, for the most part, “order-independent.” For example,
instructions to print text at the bottom of a label can come before the instruction to
print a bar code at the top of the same label.
Control (~ - Tilde) Commands
Control commands have an immediate effect on printer operation. They are used to get
printer status, error reporting, printer file management, fine-tune printer operation
(darkness, positioning media, etc.), and cancel, clear or reset printer or printer operations.
Control commands can be used within formats (forms). When used within a format (form),
the control command is used to process data (e.g. graphic or font import)
Kommentare zu diesen Handbüchern