c++ kr403 usb / serial port model

// Expert user has replied.
L Luis Goncalves 3 years 7 months ago
84 2 0

Hi,
 
  i have a zebra KR403 printer ( the model with usb/serial port) connections.
 
  I am building a Qt/c++ application which needs to print receipts. Additionally for mantainance purposes, i need check if the printer is out of paper or has a papper jam.  I canno't figure out how to query the printer  status. Any ideias on how to accomplish this ?
 
 
 
Best regards,
  Luis G.

Please Register or Login to post a reply

2 Replies

G Gregory Pawlik

Hi Luis,

You can send the ~HQES command to the printer and it will return flags for various status for the printer including paper out and paper jam.

More information about  ~HQES error flags can be found on page 221 of the ZPL programming guide:
https://www.zebra.com/content/dam/zebra/manuals/en-us/software/zpl-zbi2…

Greg

L Luis Goncalves

Hi Greg,

thanks for the quick reply. 

That is exactly what i need to get. 

I tested that command with Zebra Setup Utilities:

  when connecting over USB it works ( usb mini - usb cable). Sample Output:
     PRINTER STATUS                       
        ERRORS:         1 00000000 00010000 
        WARNINGS:       1 00000000 00000030 

 

when connecting over SerialPort it doesn't work:
    i get an error on the software status bar: "Unable to open port!"
    Nothing works. I canno´t print sample page either.

 

These are my Serial port settings:

Note: For the Serial port connection i am using a RS232 to usb cable like this one:

CONTACT
Can’t find what you’re looking for?