^LL Label Length
Sets the label length in dots. It is required for continuous media and can optionally be applied to gap and mark media as well.
^LLy,x
^LL parameters
| Parameter | Meaning | Accepted values | Default |
|---|---|---|---|
ylabel lengthp. 294 |
The length of the label, counted in dots. The printer accepts any value, but the installed memory decides the real maximum length. The guide says that a value beyond the printer's limit cuts off the bottom of the label, and that the label also shifts down from top to bottom. |
1 to 32000, but not more than the maximum label size. |
Typically set through the LCD (if the printer has one), otherwise the maximum label length the printer is capable of. |
xlabel length applies to all mediap. 294 |
Whether the length applies only to continuous media or to every media type, including gap and mark media. |
Lower-case n and y are also accepted. |
NIf no value is present, the current setting is left unchanged. |
^LL notes and gotchas
-
Interaction
To apply to the label being defined,
p. 294^LLhas to be placed ahead of the first^FS; the guide ties this to compatibility with existing printers. The value then stays in force until the printer is switched off or another^LLarrives. With several^LLcommands in one format, the last one affects the next label unless it was sent before the first^FS. -
Interaction
The
p. 307^MNentry says that for continuous media the label length is set by^LL, and that^MNV(continuous, variable length) still needs^LLto give the starting length. -
Interaction
The
p. 322^POentry says that a label containing^LLis affected differently when it is inverted with^POI. -
Firmware
The command is ignored on the HC100 printer.
Firmware: Ignored on the HC100 printer. p. 294 -
Note
The command is needed for continuous media, which the guide defines as media with no physical feature (gap, space, notch, slot or hole) that divides it into labels.
p. 294 -
Note
The setting does not survive a power cycle unless a
pp. 278, 294^JUSis received.^JUwith the value S saves the current settings. -
Note
An SGD setting named zpl.label_length_always is described as letting the
p. 1091^LLlength apply to gap or black-mark media. It is persistent across a power cycle and its default is no.
Where the guide contradicts itself (3)
-
Guide issue
The Format line is printed as
p. 294^LLy.x with a period between y and x, while the parameter table treats y and x as two parameters. Every other multi-parameter Format line the guide prints uses commas (for example^PQon page 324), so the record writes^LLy,x. The guide does not comment on the period. -
Guide issue
The x parameter prints Default: N, and in the same cell says that if no value is present the current setting is left unchanged. The guide does not say which applies when x is omitted: a reset to N, or no change to an earlier setting.
p. 294 -
Guide issue
The dots-per-inch wording differs between pages. Page 294 converts with 152.4, 203.2, 304.8 and 609.6 dots per inch for 6, 8, 12 and 24 dots/mm printheads. Page 210 gives 153, 203, 300 and 600 for the same four densities. Page 293 gives 152, 203, 300 (with 11.8 dots/mm) and 608. Page 269 gives 304 dots/inch for 12 dots/mm. Page 49 says 8/mm is 200 dpi. The dots/mm figures (6, 8, 12 and 24) are the stable ones; only page 293 uses 11.8 dots/mm where the others use 12.
pp. 49, 210, 269, 293, 294
^LL example
^XA ^LL600 ^FO30,25^A0N,36,36^FDLength test^FS ^XZ
Sets the label length to 600 dots before the first ^FS, so it applies to the label being defined, then places one line of text. The second parameter x is left out; the guide prints both a default of N and a statement that the current setting stays unchanged when no value is present, so what omission does is not settled by the guide. On an 8 dots/mm printhead 600 dots is 75 mm (600 divided by 8).
Guides that use ^LL
BarcoderX is a .NET SDK for thermal labels and barcodes. See how it prints and exports labels.
Source Zebra, ZPL II, ZBI 2, Set-Get-Do, Mirror, WML Programming Guide, P1134473-11EN Rev A, 2026/07/05, pages 49, 60, 190, 201, 204, 210, 269, 278, 293, 294, 307, 322, 329, 1091.
Written by BarcoderX in its own words. Checked against the guide on 2026-11-14.
ZPL and ZPL II are trademarks of Zebra Technologies Corporation. This reference is written by BarcoderX in its own words from Zebra's published programming guide. BarcoderX is an independent product and is not affiliated with, endorsed by or sponsored by Zebra Technologies.