Skip to command documentation
Device onlynetworkdevicesession scope
^WE

Set WEP Mode

^WE configures set WEP Mode. 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
^WEa,b,c,d,e,f,g,h
a

Encryption mode

Sets encryption mode. It can be omitted when the documented default is suitable.

Default
OFF
Required
No
Documented valuesOFF40128

a variations

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

Side-by-side comparison3 variations

a = OFF

Uses OFF for encryption mode while the other command values stay at representative defaults.

ZPLcaret-we-a-1.zpl
^WEOFF,1,O,H,KEY1,KEY2,KEY3,KEY4

a = 40

Uses 40 for encryption mode while the other command values stay at representative defaults.

ZPLcaret-we-a-2.zpl
^WE40,1,O,H,KEY1,KEY2,KEY3,KEY4

a = 128

Uses 128 for encryption mode while the other command values stay at representative defaults.

ZPLcaret-we-a-3.zpl
^WE128,1,O,H,KEY1,KEY2,KEY3,KEY4
b

Encryption index

Sets encryption index. It can be omitted when the documented default is suitable.

Default
1
Required
No
Documented values1234

b variations

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

Side-by-side comparison3 variations

b = 1

Uses 1 for encryption index while the other command values stay at representative defaults.

ZPLcaret-we-b-1.zpl
^WEOFF,1,O,H,KEY1,KEY2,KEY3,KEY4

b = 2

Uses 2 for encryption index while the other command values stay at representative defaults.

ZPLcaret-we-b-2.zpl
^WEOFF,2,O,H,KEY1,KEY2,KEY3,KEY4

b = 4

Uses 4 for encryption index while the other command values stay at representative defaults.

ZPLcaret-we-b-3.zpl
^WEOFF,4,O,H,KEY1,KEY2,KEY3,KEY4
c

Authentication type

Sets authentication type. It can be omitted when the documented default is suitable.

Default
O If you enable Shared Key authentication with Encryption Mode set to OFF , this value resets to O (
Required
No
Documented valuesOS

c variations

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

Side-by-side comparison2 variations

c = O

Uses O for authentication type while the other command values stay at representative defaults.

ZPLcaret-we-c-1.zpl
^WEOFF,1,O,H,KEY1,KEY2,KEY3,KEY4

c = S

Uses S for authentication type while the other command values stay at representative defaults.

ZPLcaret-we-c-2.zpl
^WEOFF,1,S,H,KEY1,KEY2,KEY3,KEY4
d

Encryption key storage

Sets encryption key storage. It can be omitted when the documented default is suitable.

Default
H
Required
No
Documented valuesHS

d variations

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

Side-by-side comparison2 variations

d = H

Uses H for encryption key storage while the other command values stay at representative defaults.

ZPLcaret-we-d-1.zpl
^WEOFF,1,O,H,KEY1,KEY2,KEY3,KEY4

d = S

Uses S for encryption key storage while the other command values stay at representative defaults.

ZPLcaret-we-d-2.zpl
^WEOFF,1,O,S,KEY1,KEY2,KEY3,KEY4
e,_f,_g,_h

Encryption keys 1 through 4

Sets encryption keys 1 through 4. It can be omitted when the documented default is suitable.

Required
No
Documented valuesKEY0

e,_f,_g,_h variations

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

Side-by-side comparison2 variations

e,_f,_g,_h = KEY

Uses KEY for encryption keys 1 through 4 while the other command values stay at representative defaults.

ZPLcaret-we-e-f-g-h-1.zpl
^WEOFF,1,O,H,KEY

e,_f,_g,_h = 0

Uses 0 for encryption keys 1 through 4 while the other command values stay at representative defaults.

ZPLcaret-we-e-f-g-h-2.zpl
^WEOFF,1,O,H,0

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.