Skip to command documentation
Device onlyprinterdevicesession scope
^KP

Define Password

^KP configures define Password. 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
^KPa,b
a

Mandatory four-digit password

Sets mandatory four-digit password. It can be omitted when the documented default is suitable.

Default
For printers purchased in the EMEA region after August 1, 2025: The default value is empty and must
Required
No
Documented values00009999

a variations

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

Side-by-side comparison2 variations

a = 0000

Uses 0000 for mandatory four-digit password while the other command values stay at representative defaults.

ZPLcaret-kp-a-1.zpl
^KP0000,3

a = 9999

Uses 9999 for mandatory four-digit password while the other command values stay at representative defaults.

ZPLcaret-kp-a-2.zpl
^KP9999,3
b

Password level (applicable to the S4M printer only)

Sets password level (applicable to the S4M printer only). It can be omitted when the documented default is suitable.

Default
3
Required
No
Documented values3124

b variations

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

Side-by-side comparison3 variations

b = 1

Uses 1 for password level (applicable to the S4M printer only) while the other command values stay at representative defaults.

ZPLcaret-kp-b-1.zpl
^KP0000,1

b = 2

Uses 2 for password level (applicable to the S4M printer only) while the other command values stay at representative defaults.

ZPLcaret-kp-b-2.zpl
^KP0000,2

b = 4

Uses 4 for password level (applicable to the S4M printer only) while the other command values stay at representative defaults.

ZPLcaret-kp-b-3.zpl
^KP0000,4

Primary source

Official Zebra reference

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

Open Zebra documentation

ZPLr Command Reference

Independent documentation for the pinned ZPL II 2025 renderer profile. Examples run locally in your browser.

ZPL, ZPL II, Zebra, and Zebra Programming Language are trademarks or registered trademarks of Zebra Technologies Corp. ZPLr is independent and is not affiliated with or endorsed by Zebra Technologies Corp.