zpl.tools
Network and wireless

^NP - Set Primary/Secondary Device

Chooses whether the printer's own LAN settings or the print server's are used at boot.

^NP decides whose LAN and WLAN settings the printer uses at boot: its own, or those held by the print server. The printer is primary by default. With the printer primary, ZPL commands or the SetWLAN utility can manage its settings. A wired print server fitted afterwards inherits those settings and does not bring its own.

Syntax

^NPa

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.

Decides which stored copy of the network configuration wins at boot. Neither affects a 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

aPrimary deviceoptional · one of a set

Whose settings to apply. With the printer primary, a wired print server inserted later inherits the printer's settings.

Default
P (the printer's own settings)
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 (P, M).
P
The printer's settings (default)
M
The print server's settings

Behavior

The printer reads this choice at boot, and the choice governs configuration only. A label image cannot depend on which of two stores supplied the addressing.

The renderer ignores this command and reads no arguments. It reports IGNORED_COMMAND at info severity, which does not reach the X-Warnings header. Labelary is also silent, so the rendered label is identical in both engines.

Example

Keeping the printer as the primary device:

^XA
^NPP
^FO40,60^A0N,50,50^FDPrinter primary^FS
^XZ

Open in viewer