zpl.tools
Printer configuration

^MP - Mode Protection

Disables individual front-panel functions so an operator cannot change them.

^MP locks a control panel function so an operator cannot change it. A locked setting no longer accepts an adjustment and its LED no longer lights, so a locked function looks inactive rather than protected.

Syntax

^MPa

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 command locks buttons on a panel that does not exist. Each invocation disables one function; E re-enables them all. 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

aFunctionrequired · one of a set

Which front-panel function to disable. The command disables one function at a time. Repeat it to lock several.

Invalid value
not documented, and we have not measured it. The renderer does not parse or measure this command. The printer ignores a command with no value. The guide does not state what an unrecognized letter does.
Test coverage
No documented value is exercised by a test (D, P, C, W, F, X, M, S, E).
D
Disable darkness mode
P
Disable position mode
C
Disable calibration mode
W
Disable pause
F
Disable feed
X
Disable cancel
M
Disable menu adjustments
S
Disable mode saves
E
Re-enable every mode

Behavior

The command carries exactly one function, so several functions need several commands. Two values are not locks: S accepts an adjustment but does not save it, and E re-enables every disabled function.

The guide states that the printer ignores the command when no value is given, and does not state what an unrecognized letter does.

^KP is the softer alternative: a password over a group of settings rather than an outright lock. This API has no control panel, so the renderer ignores this command and ^KP.

Example

Darkness and calibration locked, which takes one command each:

^XA
^MPD
^MPC
^FO50,50^A0N,30,30^FDPanel locked^FS
^XZ

Open in viewer