Skip to command documentation
Device onlynetworkdevicesession scope
^NP

Set Primary/Secondary Device

^NP configures set Primary/Secondary Device. It applies to the printer session and subsequent formats and controls printer hardware or connectivity rather than label pixels.

ZPLr compatibility note

  • Recognized by the renderer but has no label-raster effect.

These are code examples only. This printer or session command does not produce a standalone label image.

Syntax
^NPa
a

Device to use as primary

Sets device to use as primary. It can be omitted when the documented default is suitable.

Default
P
Required
No
Documented valuesPM

a variations

Compare values side by side; other parameters remain at representative defaults.

Side-by-side comparison2 variations

a = P

Uses P for device to use as primary while the other command values stay at representative defaults.

ZPLcaret-np-a-1.zpl
^NPP

a = M

Uses M for device to use as primary while the other command values stay at representative defaults.

ZPLcaret-np-a-2.zpl
^NPM

Primary source

Official Zebra reference

Use the manufacturer reference for printer- and firmware-specific behavior beyond ZPLr’s pinned rendering profile.

Open Zebra documentation