What ^PW does
^PW defines how wide, in dots, the printer will image the label. Content beyond this width is clipped. Set it to match your label stock — a 4 in label at 203 dpi is 812 dots wide (^PW812).
Syntax
^PWaParameters
| Parameter | Description | Values | Default |
|---|---|---|---|
a | Label width in dots | 0 to printhead width | — |
Example
^XA
^PW812
^FO0,0^GB812,3,3^FS
^XZUse the DPI calculator to convert inches to dots for ^PW.
Paste this into the free ZPL viewer to see it render, or convert it to PDF.
Notes & tips
- Width in dots = inches × dpi (e.g. 4 × 203 = 812).
- Content wider than ^PW is clipped.
Related commands
See the full ZPL command reference for all 92 documented commands.
