ZPL commands
Supported commands
zplkit currently supports 85 of the 176 commands in Zebra's ZPL II Programming Guide. A supported command can be built with zplkit, parse() reads it into a typed node, and the preview draws it if it draws anything. Other commands are kept as they are by parse() and can be added with raw(). Open a row for a summary, or a command's page for its parameters and an example.
Every parameter and edge case is in Zebra's ZPL II Programming Guide.
✓ Supported Partly, see the notes Not yet
176 of 176
Labels and formats19 of 19 supported
| Command | Supported | ||
|---|---|---|---|
Change Caret | Change Caret | ✓ | |
Change Caret | Change Caret | ✓ | |
Change Delimiter | Change Delimiter | ✓ | |
Change Delimiter | Change Delimiter | ✓ | |
Change Tilde | Change Tilde | ✓ | |
Change Tilde | Change Tilde | ✓ | |
Download Format | Download Format | ✓ | |
Label Home | Label Home | ✓ | |
Label Length | Label Length | ✓ | |
Label Reverse Print | Label Reverse Print | ✓ | |
Label Shift | Label Shift | ✓ | |
Label Top | Label Top | ✓ | |
Set Units of MeasurementConverting between resolutions (b and c) isn't applied | Set Units of Measurement | ✓ | Converting between resolutions (b and c) isn't applied |
Printing Mirror Image of Label | Printing Mirror Image of Label | ✓ | |
Print Orientation | Print Orientation | ✓ | |
Print Width | Print Width | ✓ | |
Start Format | Start Format | ✓ | |
Recall Format | Recall Format | ✓ | |
End Format | End Format | ✓ |
Fields13 of 14 supported
| Command | Supported | ||
|---|---|---|---|
Field Clock (or Real Time Clock)Days and months in English; the renderer's clock option sets the time | Field Clock (or Real Time Clock) | ✓ | Days and months in English; the renderer's clock option sets the time |
Field Data | Field Data | ✓ | |
Multiple Field Origin Locations | Multiple Field Origin Locations | ||
Field Number | Field Number | ✓ | |
Field Origin | Field Origin | ✓ | |
Field Parameter | Field Parameter | ✓ | |
Field Reverse Print | Field Reverse Print | ✓ | |
Field Separator | Field Separator | ✓ | |
Field Typeset | Field Typeset | ✓ | |
Field Variable | Field Variable | ✓ | |
Field Orientation | Field Orientation | ✓ | |
Comment | Comment | ✓ | |
Serialization Field (with a standard ^FD String) | Serialization Field (with a standard ^FD String) | ✓ | |
Serialization Data | Serialization Data | ✓ |
Text and fonts10 of 14 supported
| Command | Supported | ||
|---|---|---|---|
Scalable/bitmapped font | Scalable/bitmapped font | ✓ | |
Use font name to call fontNeeds the font file, downloaded in the label or passed to the renderer | Use font name to call font | ✓ | Needs the font file, downloaded in the label or passed to the renderer |
Change Alphanumeric Default Font | Change Alphanumeric Default Font | ✓ | |
Change International Font/EncodingUTF-8 (28 to 30) and Latin-1 | Change International Font/Encoding | UTF-8 (28 to 30) and Latin-1 | |
Font Identifier | Font Identifier | ✓ | |
Download Bitmap Font | Download Bitmap Font | ||
Download Encoding | Download Encoding | ||
Download Intellifont (Scalable Font) | Download Intellifont (Scalable Font) | ||
Download Bounded TrueType fontBounded fonts use Zebra's own format, which isn't drawn | Download Bounded TrueType font | Bounded fonts use Zebra's own format, which isn't drawn | |
Download Unbounded TrueType font | Download Unbounded TrueType font | ✓ | |
Field Block | Field Block | ✓ | |
Field Hexadecimal Indicator | Field Hexadecimal Indicator | ✓ | |
Select Encoding | Select Encoding | ||
Text BlocksDrawn as Zebra's guide describes, without reference renders to compare with | Text Blocks | ✓ | Drawn as Zebra's guide describes, without reference renders to compare with |
Graphics and images12 of 17 supported
| Command | Supported | ||
|---|---|---|---|
Download Graphics | Download Graphics | ✓ | |
Abort Download Graphics | Abort Download Graphics | ||
Download Graphics / Native TrueType or OpenType fontTrueType fonts and graphics | Download Graphics / Native TrueType or OpenType font | ✓ | TrueType fonts and graphics |
Erase Download Graphics | Erase Download Graphics | ||
Graphic Box | Graphic Box | ✓ | |
Graphic Circle | Graphic Circle | ✓ | |
Graphic Diagonal Line | Graphic Diagonal Line | ✓ | |
Graphic Ellipse | Graphic Ellipse | ✓ | |
Graphic Field | Graphic Field | ✓ | |
Graphic SymbolThe UL and CSA marks are drawn as stand-ins | Graphic Symbol | The UL and CSA marks are drawn as stand-ins | |
Host Graphic | Host Graphic | ||
Upload Graphics | Upload Graphics | ||
Object Delete | Object Delete | ✓ | |
Image Load | Image Load | ✓ | |
Image Move | Image Move | ✓ | |
Image Save | Image Save | ||
Recall Graphic | Recall Graphic | ✓ |
Barcodes27 of 30 supported
| Command | Supported | ||
|---|---|---|---|
Aztec bar code parameters | Aztec bar code parameters | ✓ | |
Code 11 bar code | Code 11 bar code | ✓ | |
Interleaved 2 of 5 bar code | Interleaved 2 of 5 bar code | ✓ | |
Code 39 bar code | Code 39 bar code | ✓ | |
Code 49 bar code | Code 49 bar code | ||
Planet Code bar code | Planet Code bar code | ✓ | |
PDF417 bar codeSame size as a printer's symbol; error correction codewords can differ | PDF417 bar code | ✓ | Same size as a printer's symbol; error correction codewords can differ |
EAN-8 bar code | EAN-8 bar code | ✓ | |
UPC-E bar code | UPC-E bar code | ✓ | |
Code 93 bar code | Code 93 bar code | ✓ | |
CODABLOCK bar code | CODABLOCK bar code | ||
Code 128 bar code (subsets A, B, and C) | Code 128 bar code (subsets A, B, and C) | ✓ | |
UPS MaxiCode bar codeModes 2 to 6 | UPS MaxiCode bar code | ✓ | Modes 2 to 6 |
EAN-13 bar code | EAN-13 bar code | ✓ | |
MicroPDF417 bar codeSame size as a printer's symbol; data can be encoded differently | MicroPDF417 bar code | ✓ | Same size as a printer's symbol; data can be encoded differently |
Industrial 2 of 5 bar code | Industrial 2 of 5 bar code | ✓ | |
Standard 2 of 5 bar code | Standard 2 of 5 bar code | ✓ | |
ANSI Codabar bar code | ANSI Codabar bar code | ✓ | |
LOGMARS bar code | LOGMARS bar code | ✓ | |
MSI bar code | MSI bar code | ✓ | |
Aztec bar code | Aztec bar code | ✓ | |
Plessey bar code | Plessey bar code | ✓ | |
QR Code bar code | QR Code bar code | ✓ | |
RSS (Reduced Space Symbology) bar codeTypes 1 to 6; composite symbols show a placeholder | RSS (Reduced Space Symbology) bar code | Types 1 to 6; composite symbols show a placeholder | |
UPC/EAN bar code | UPC/EAN bar code | ✓ | |
TLC39 bar code | TLC39 bar code | ||
UPC-A bar code | UPC-A bar code | ✓ | |
Data Matrix bar codeSame size as a printer's symbol; data can be encoded differently | Data Matrix bar code | ✓ | Same size as a printer's symbol; data can be encoded differently |
Bar code field default | Bar code field default | ✓ | |
POSTNET bar code | POSTNET bar code | ✓ |
Printer and media4 of 82 supported
| Command | Supported | ||
|---|---|---|---|
Change Memory Letter Designation | Change Memory Letter Designation | ||
Cache On | Cache On | ||
Code Validation | Code Validation | ||
Battery Status | Battery Status | ||
Head Diagnostic | Head Diagnostic | ||
Host Format | Host Format | ||
Configuration Label Return | Configuration Label Return | ||
Host Identification | Host Identification | ||
Host RAM Status | Host RAM Status | ||
Host Status Return | Host Status Return | ||
Return ZebraNet Alert Configuration | Return ZebraNet Alert Configuration | ||
Host Verification | Host Verification | ||
Host Directory List | Host Directory List | ||
Display Description Information | Display Description Information | ||
Cancel All | Cancel All | ||
Initialize Flash Memory | Initialize Flash Memory | ||
Reset Optional Memory | Reset Optional Memory | ||
Set Media Sensor Calibration | Set Media Sensor Calibration | ||
Enable Communications Diagnostics | Enable Communications Diagnostics | ||
Disable Diagnostics | Disable Diagnostics | ||
Set Battery Condition | Set Battery Condition | ||
Graphing Sensor Calibration | Graphing Sensor Calibration | ||
Set Auxiliary Port | Set Auxiliary Port | ||
Set Label Length | Set Label Length | ||
Set Dots per Millimeter | Set Dots per Millimeter | ||
Head Test Fatal | Head Test Fatal | ||
Head Test Non-Fatal | Head Test Non-Fatal | ||
Pause and Cancel Format | Pause and Cancel Format | ||
Power On Reset | Power On Reset | ||
Sensor Select | Sensor Select | ||
Change Backfeed Sequence | Change Backfeed Sequence | ||
Head Test Interval | Head Test Interval | ||
Configuration Update | Configuration Update | ||
Set Ribbon Tension | Set Ribbon Tension | ||
Cancel Current Partially Input Format | Cancel Current Partially Input Format | ||
Reprint After Error | Reprint After Error | ||
Kill Battery (Battery Discharge Mode) | Kill Battery (Battery Discharge Mode) | ||
Select Date and Time Format (for Real Time Clock) | Select Date and Time Format (for Real Time Clock) | ||
Define Language | Define Language | ||
Define Printer Name | Define Printer Name | ||
Set Password | Set Password | ||
Map Clear | Map Clear | ||
Media Darkness | Media Darkness | ✓ | |
Media Feed | Media Feed | ||
Maximum Label Length | Maximum Label Length | ||
Print Mode | Print Mode | ||
Media Tracking | Media Tracking | ||
Mode Protection | Mode Protection | ||
Media Type | Media Type | ||
Modify Head Cold Warning | Modify Head Cold Warning | ||
Network Connect | Network Connect | ||
Network ID Number | Network ID Number | ||
Set All Printers Transparent | Set All Printers Transparent | ||
Change Networking Settings | Change Networking Settings | ||
Set Currently Connected Printer Transparent | Set Currently Connected Printer Transparent | ||
Slew Given Number of Dot Rows | Slew Given Number of Dot Rows | ||
Slew to Home Position | Slew to Home Position | ||
Slew to Home Position | Slew to Home Position | ||
Programmable Pause | Programmable Pause | ||
Programmable Pause | Programmable Pause | ||
Print QuantityCopies that are all the same are drawn once, with their count | Print Quantity | ✓ | Copies that are all the same are drawn once, with their count |
Print Rate | Print Rate | ✓ | |
Applicator Reprint | Applicator Reprint | ||
Print Start | Print Start | ||
Reset Advanced Counter | Reset Advanced Counter | ||
Set Serial Communications | Set Serial Communications | ||
Set Darkness | Set Darkness | ✓ | |
Set Mode and Language | Set Mode and Language | ||
Set Offset (for Real Time Clock) | Set Offset (for Real Time Clock) | ||
Start Print | Start Print | ||
Halt ZebraNet Alert | Halt ZebraNet Alert | ||
Set Printhead Resistance | Set Printhead Resistance | ||
Set Media Sensors | Set Media Sensors | ||
Set Date and Time (for Real Time Clock) | Set Date and Time (for Real Time Clock) | ||
Set ZebraNet Alert | Set ZebraNet Alert | ||
Set ZPL Mode | Set ZPL Mode | ||
Tear-off Adjust Position | Tear-off Adjust Position | ||
Transfer Object | Transfer Object | ||
Print Configuration Label | Print Configuration Label | ||
Print Directory Label | Print Directory Label | ||
Suppress Backfeed | Suppress Backfeed | ||
Printer Sleep | Printer Sleep |