Label and sticker sizes

ZPL course · ZPL FAQ

Command reference: Labelary ZPL introduction.

Below, commands are bold, parameters are colored, field data stays plain.

Label sizes — match the format to the media

Goal

Set ^PW and ^LL from the physical sticker so nothing prints off the edge.

Description

ZPL positions everything in dots. A 203 dpi head prints 203 dots per inch, so a 4 by 6 inch shipping sticker is 812 by 1218 dots, and a 4 by 2 inch small sticker is 812 by 406 dots. ^PW sets the width, ^LL the length; at 300 dpi multiply everything by 300/203 instead. ^PO with I rotates the whole label 180 degrees when the roll feeds the other way. Calibrate first with lesson 44 — a format with perfect numbers still misprints on an uncalibrated printer.

Example

^XA
^PW812
^LL1218
^FO50,50^A0N,40,40^FD4x6 shipping sticker^FS
^XZ

Rendered 4x6 label

Result

One line of text inside a 4 by 6 frame. Swap the two numbers for a 4 by 2 sticker: ^PW812 with ^LL406.

Article author: Andrei Olegovich

Related articles
RFID
ZPL
ZPL course: 54 lessons
ZPL FAQ
RFID tools
^XS — Dynamic Media Calibration

Search this site

Channel @aofeed Chat @aofeedchat

Contacts and cooperation:
I recommend our hosting beget.ru
Write to info@urn.su, info@aredel.com if you:
1. Want to write an article for our site or translate an article into your native language.
2. Want to place thematically relevant ads on the site.
3. Ads on my site pass maximum censorship. If you see an ad block unsuitable for school-age children, shocking or misleading - please contact us by e-mail
4. Found a mistake, inaccuracy, bug, etc. on the site. ... .......
5. Articles can be shared on social media by clicking a network icon: