Capturing and viewing data sent to a Zebra Link OS compatible printer

Article ID: 64950121

Details


 

Topic or Information

Using the printer data capture capability with the SGD command "input.capture" 

Applies To

QLn Series, iMZ Series, ZD Series, ZT Series Printers (Link OS compatible printers)

Details

Link-OS printers have the capability of storing the data it receives into a temporary file, which can be turned on using a SGD command, input.capture, and the file retrieved with another SGD command, file.type.

To set the printer into the mode where it will receive the data and not print, send the following command in the Zebra Setup Utilities communication window:

! U1 setvar "input.capture" "run"

This will tell the printer to store anything sent to the printer to a file named IN???.DMP (? will be a number between 001 and 999) in the printer’s memory until the printer is told to exit the input capture mode or power cycled. This includes SGD commands as well as ZPL/EPL/CPCL commands, and the printer will continue to print and operate normally.

To retrieve the file list of the stored dump files on the printer, in Zebra Setup Utilities send the following command to display the list of items in the E: memory:

! U1 do "file.dir" "E:"

 

User-added image

 

 The IN???.DMP files are the log files stored in the printer’s memory. To retrieve the actual data in a dump file, the following command can be sent (substituting the number for the question marks):

! U1 do "file.type" "E:IN???.DMP"

 

User-added image

To export the results to a file, click ‘File’, then click ‘Export All Received Data.’

 

Note:  It’s not recommended to leave the printer in input capture mode, as the memory can fill up over time. To return the printer back to normal operating mode without storing any more data, either power cycle the printer, or send the following command:

! U1 setvar "input.capture" "off"

To clear the dump files from the memory, you can send the following command to the printer:

! U1 do "file.delete" "E:IN0*.DMP"

Additionally, this will not intercept printserver commands, only printer commands.

 

Additional Information

Sending and receiving data using the Zebra Setup Utility Read More>>

input.capture SGD command details Read More>>

Source

Joe V