zpl.tools
Print control

^ZZ - Printer Sleep

Puts the printer into sleep mode after a delay.

^ZZ puts the printer into an idle or shutdown state after a stated number of seconds without work. It serves battery life, and the guide accepts it only on the PA400 and PT400 battery-powered printers, so every other printer ignores it.

Syntax

^ZZt,b

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.

Power management, with no effect on a rendered label. 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

tDelayoptional · integer

Seconds of idle time before sleep. The guide gives 0 its own meaning: it disables automatic shutdown and does not sleep at once.

Default
the previously set value, or 0
Accepted range
0 to 999999 seconds
Invalid value
not documented, and we have not measured it. The renderer does not parse or measure this command.
Test coverage
No test at the minimum, maximum or one step outside the range.
bSleep immediatelyoptional · Y or N

Whether to sleep at once or wait for the print queue to drain.

Default
N
Invalid value
not documented, and we have not measured it. The renderer does not parse or measure this command.
Test coverage
No documented value is exercised by a test (Y, N).
Y
Sleep at once
N
Finish the queue first (default)

Behavior

The delay is an idle timeout, not a countdown to sleep, so 0 disables automatic shutdown rather than sleeps at once. The second argument sleeps at once, and Y there shuts the printer down with labels still in the queue.

Power management has no bearing on a rendered label. 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 one-minute idle timeout, sleeping only once the queue has drained:

^XA
^ZZ60,N
^FO50,50^A0N,40,40^FDLast label^FS
^XZ

Open in viewer

  • ^PQ Print QuantityPrints the label more than once, the one command here that changes how many pages come back.