zpl.tools
Media and sensors

~JL - Set Label Length

Makes the printer feed media to measure the label length for itself.

~JL asks the printer to measure the label length. The printer feeds media past the media sensor until it sees the pattern repeat. The command takes no arguments: the answer comes from the stock, not from the format. One or more blank labels come out while the printer measures.

Syntax

~JL

Support

Recognised, deliberately skippedparsed: none · state: none · rendered: none

Accepted and skipped, because it configures the printer rather than the label. It cannot change the rendered output, and Labelary skips it too.

The printer measures the length as it feeds blank media past the sensor, and draws nothing. The page size comes from the dimensions in the API request, so a measurement has nothing to set here. The renderer does not parse this command. It reports IGNORED_COMMAND at info severity, which does not reach X-Warnings. Labelary is also silent, so the rendered label is identical in both engines. — not pinned by a test

Labelary renders this command.

Parameters

~JL takes no arguments.

Behavior

~JL acts as soon as the printer reads it rather than at ^XZ. Send it on its own or ahead of a format.

~JL is the narrow member of a family:

  • ~JL measures the length only.
  • ~JC also adjusts the media and ribbon sensor readings.
  • ~JG does what ~JC does, and prints the resulting profile.

^MF can request the same measurement at power-up or head-close, and ^XS decides whether the printer re-measures between labels.

No media moves here, and the page size comes from the dimensions in the API request rather than from a measured length. The renderer does not parse this command. It reports IGNORED_COMMAND at info severity, which does not reach X-Warnings. Labelary is also silent, so the rendered label is identical in both engines.

Example

A length measurement requested before the format that follows it.

~JL
^XA
^FO50,50^A0N,40,40^FDMeasured length^FS
^XZ

Open in viewer