ZPL commands
~WQ · Write Query
Requests information from the printer and sends it back to the host - e.g. odometer readings, maintenance alerts, error status, serial number or MAC address.
Requests information from the printer and sends it back to the host - e.g. odometer readings, maintenance alerts, error status, serial number or MAC address.
Parameters
~WQq- q: query type: ES = error status, HA = hardware (MAC) address of the internal print server, JT = printhead test results, MA = maintenance alert settings, MI = maintenance information, OD = odometer (printed length/labels), PH = printhead life history, PP = Plug and Play string, SN = serial number, UI = USB product ID
Example
~WQOD
Tip
The reply only arrives over a bidirectional connection (e.g. TCP port 9100 or USB) - ideal for monitoring usage and maintenance automatically.