Sample ZPL & CPCL Scripts

Below is a list of common functions to program your zebra printer. You can send these commands directly through the windows driver, or on a MAC you can use our Zebra Utilities for MAC. If using the MAC utilities, once your printer is connected via USB, paste these commands into text import to send to printer.

Function Command to paste (edit text in red)
Set Printer Language (zpl)

! U1 setvar "device.languages" "ZPL"

 

Set DHCP w/ no encryption (edit SSID of your network in Red)

! U1 setvar "ip.dhcp.enable" "on" 
! U1 setvar "wlan.ip.protocol" "dhcp" 
! U1 setvar "wlan.essid" "change to your SSID
! U1 setvar "wlan.leap_mode" "off" 
! U1 setvar "wlan.kerberos.mode" "off" 
! U1 setvar "wlan.encryption_mode" "off" 
! U1 setvar "wlan.8021x.enable" "off" 
! U1 setvar "wlan.operating_mode" "infrastructure" 
! U1 setvar "wlan.preamble" "long" 
! U1 setvar "wlan.allowed_band" "2.4" 
! U1 do "device.reset" ""

 

Set DHCP w/ Encryption (WPA-PSK, WPA2-PSK)

Visit link on right to generate psk key, and paste are replace in between  the ""

! U1 setvar "ip.dhcp.enable" "on"
! U1 setvar "wlan.ip.protocol" "dhcp"
! U1 setvar "wlan.essid" "Change to your SSID"
! U1 setvar "wlan.leap_mode" "off"
! U1 setvar "wlan.kerberos.mode" "off"
! U1 setvar "wlan.encryption_mode" "off"
! U1 setvar "wlan.8021x.enable" "off"
! U1 setvar "wlan.operating_mode" "infrastructure"
! U1 setvar "wlan.preamble" "long"
! U1 setvar "wlan.allowed_band" "2.4"
! U1 setvar "wlan.wpa.authentication" "psk"
! U1 setvar "wlan.wpa.enable" "on"
! U1 setvar "wlan.wpa.psk" "Click here to generate key"
! U1 do "device.reset" ""
   

There are no products listed under this category.