ZPL config builder
Your label ZPL is right; the printer settings are not. Paste or upload
the ZPL, pick how many copies, the darkness, the print speed, the tear-off position and the rest, and get the
stream back with the right commands merged in. A ^PQ that is already there is rewritten in place,
duplicates are dropped, and nothing gets appended twice. Job settings stay inside ^XA…^XZ;
printer settings (~SD, ~TA) go in only when you ask.
| Setting | Command | What it does | Merge | Scope |
|---|
The preview honors ^PO (inverted) and ^PM (mirror) so you can see them before the printer does.
With size from ^PW/^LL ticked it also takes each dimension the stream declares, falling back to the preset for the ones it doesn't,
which is exactly what an auto-size virtual printer does.
Send it straight to the printer's raw port:
nc YOUR-PRINTER-IP 9100 < configured.zpl
No printer handy? Send it to a virtual printer
and check the rendered job; ^PQ shows up as the label count.
The commands, one line each
^PQq,p,r | Print quantity. Copies of the label, pause after every p, r replicates of each serial number. Format-level: put it inside ^XA…^XZ. |
^PRp,s,b | Print rate in inches per second: print, slew (feed between labels) and backfeed. Slower prints darker and sharper barcodes; 4 in/s is the usual sweet spot, and anything above 6 needs a printer rated for it. |
~SDxx | Set darkness, 0 to 30, absolute. A printer setting: it stays until changed. Too high and bars bleed together; too low and thin bars fade. |
^MDx | Media darkness, -30 to 30, relative to the printer's ~SD. Lives in the format, so one job can print darker without touching the printer's baseline. |
~TAxxx | Tear-off adjust, -120 to 120 dots. Moves where the label rests after printing so the perforation lines up with the tear bar. Printer setting. |
^MMa | Print mode: T tear-off, P peel-off, C cutter, D delayed cut, R rewind, A applicator. |
^MTa | Media type: T thermal transfer (uses a ribbon), D direct thermal. |
^MNa | Media tracking: Y gap/web, M black mark, N continuous, V continuous with variable length, A auto-detect at power-up. |
^POa | Print orientation: N normal, I inverted (the whole label rotated 180°, handy when the roll feeds the other way). |
^PWx / ^LLx | Print width and label length in dots. At 8 dpmm a 4x6" label is 812 x 1218; at 12 dpmm it is 1218 x 1827. The printer feeds what ^LL says; a renderer has to be told the label size, which is what the preview control above does. |
^LTx / ^LSx / ^LHx,y | Label top, label shift and label home: nudge the whole image vertically, horizontally, or move its origin. |
^JUS | Save configuration to flash so the current settings survive a power cycle. ^JUF restores factory defaults, ^JUR the last saved set. |