ZPLToolkit

^LL

Label LengthPreview: exact

Sets the label length in dots. On continuous media it is what defines where one label ends and the next begins.

Syntax

^LLy

Parameters

ParameterDescription and accepted valuesIf omitted
yLabel length in dots, measured along the direction of travel.1 to 32000 dotsLast ^LL value

How it works

^LL defines the length of the label in dots. On continuous media the printer has no gap or black mark to measure against, so ^LL is the only thing that tells it how far to feed — without it you get one long label or a stream of blank ones.

On die-cut or gap media the printer normally measures the label itself during calibration, and ^LL is then a declaration that should agree with the physical media. If it disagrees, content drifts a little further onto the next label with each print.

Like ^PW, the value is in dots at the printhead resolution: a 6-inch label is 1219 dots at 203 dpi and 1800 dots at 300 dpi.

Example

ZPL
^XA
^PW480
^LL240
^FO40,40^GB400,160,3^FS
^FO70,100^A0N,40,40^FD480 x 240^FS
^XZ

Rendering…

The same 480 × 240 dot format — ^LL sets the 240.
Open in the viewer

How the preview on this site handles it

Fully supported. The viewer sizes its canvas from ^LL when the format declares one.

Common mistakes

  • Relying on ^LL instead of calibrating the printer for gap media. Calibration wins; ^LL only helps continuous stock.
  • A ^LL that does not match the physical label, which makes each print creep a little further off the label than the last.
  • Mixing up ^LL (length, in dots) with the label height in millimetres from your label supplier.

See also