Send ZPL command to Zebra 170PAX4 via TCP/IP Socket

Put something like this in a project script:

import socket, sys
def sendToZebra(payload):
	zebraAddr = ('10.50.100.250', 6101)
	try:
		s = socket.connect(zebraAddr)
		s.sendAll(payload)
	finally:
		s.close()

Then call it from your button event like so:

project.zebra.sendToZebra("^XA^WD^XZ")

Not tested precisely as above, but I use this pattern at a customer site. NOTE: No driver required.