
ZPL Basics
The ZPL Command
50
P1026208-001 Rev. B Software Integrator Guide 10/29/2010
• Format commands use the caret (^) prefix. An “RS” (HEX 1E) can be substituted
for the (
^). From within ZPL command parameters, the caret (^) is treated as an
ordinary ASCII character like any other character you would type in from the
keyboard.
• Control commands use the tilde (
~) prefix. A “DLE” (HEX 10) can be substituted
for the (
~). From within ZPL command parameters, the tilde (~) is treated as an
ordinary ASCII character like any other character you would type in from the
keyboard.
• Command Parameter Delimiter uses the comma (
,) character.
• Both Format and Control prefix characters, as well as the Parameter Delimiter,
can be changed via ZPL to programmer defined characters for system
compatibility.
In this integrators guide and programmers guide, when you see the caret (
^) character or
the tilde (
~) character, it indicates that you are to type the caret (^) or tilde (~) character as
displayed.
• The caret (
^) character is not to be confused with pressing the Control (Ctrl) key
on the keyboard. The caret (
^) is a single printable ASCII character having the
code 5E HEX or 94 decimal.
• Similarly, the tilde (~) is a single printable ASCII character having the code
7E HEX or 126 decimal.
A few ZPL instructions can be sent to the printer as either a Format Instruction or a Control
Instruction. The action performed by the printer will be the same in either case. These
instructions must be preceded by the appropriate prefix (i.e. a
^ or a ~) for the context in
which they are used. Other commands, such as the
^JS (Sensor Select) and ~JS
(Change Backfeed Sequence) have entirely different functions.
Table 5-1 • ZPL Command Format Change
Command Name Description
^CC
~CC
Change Caret The ^CC and ~CC commands are used to change
the format command prefix. Default prefix is the
caret (^).
^CT
~CT
Change Tilde The ^CT and ~CT commands are used to change
the control command prefix. Default prefix is the tilde
(~).
^CD
~CD
Change Delimiter The ^CD and ~CD commands are used to change
the command parameter delimiter.The default
delimiter is the comma (,).
Comentarios a estos manuales