Search code examples
zebra-printerszplzpl-ii

How to set permanent IP address for Zebra Printer using ZPL?


I am trying to change wired network settings of Zebra Printer ZD621 by ^NS command. My code looks like this:

^XA
^NSp,192.168.15.51,255.255.255.0,192.168.15.1
^XZ

It doesn't work, what am I doing wrong?


Solution

  • ^XA
    ^ND2,P,[IP],[Subnet],[Gateway]
    ^NBC
    ^NC1
    ^NPP
    ^XZ

    ^XA
    ^JUS
    ^XZ

    ^NBC - Set network boot print server check
    ^NC1 - Set primary network device
    ^NPP - Set primary device - PRINTER

    The Zebra procedure is described here

    As soon as the command has been executed, ^JUS must be executed. The printer must then be restarted manually. The network customisation then takes effect.