Skip to command documentation
Device onlyprinterdevicesession scope
^KN

Define Printer Name

^KN configures define Printer Name. 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
^KNa,b
a

Printer name

Sets printer name. It can be omitted when the documented default is suitable.

Default
If no printer name is specified in a printer with a MAC address, the printer name will default to "Z
Required
No
Documented valuesOBJECT

a variations

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

Side-by-side comparison2 variations

a = OBJECT

Uses OBJECT for printer name while the other command values stay at representative defaults.

ZPLcaret-kn-a-1.zpl
^KNOBJECT,text

a = EXAMPLE

Uses EXAMPLE for printer name while the other command values stay at representative defaults.

ZPLcaret-kn-a-2.zpl
^KNEXAMPLE,text
b

Printer description

Sets printer description. It can be omitted when the documented default is suitable.

Default
if a value is not entered, the current stored value is erased If more than 35 characters are entered
Required
No
Documented valuestext

b variations

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

Side-by-side comparison2 variations

b = text

Uses text for printer description while the other command values stay at representative defaults.

ZPLcaret-kn-b-1.zpl
^KNOBJECT,text

b = text2

Uses text2 for printer description while the other command values stay at representative defaults.

ZPLcaret-kn-b-2.zpl
^KNOBJECT,text2

Primary source

Official Zebra reference

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

Open Zebra documentation