[WD21] Possible to tell if cash drawer is connected to receipt printer?

Startbeitrag von Curtis am 19.07.2016 16:28

I have a Star TSP 100 receipt printer and a cash drawer that hooks up to it. I have a button in my application that opens the cash drawer. I don't want to run this code if the drawer isn't connected because then it prints a small piece of paper.

Does anyone know if there is a way to tell if the cash drawer is connected?

Code I use to open drawer:

iEscape(Charact(7))
iEndPrinting()

Antworten:

Hi

Unless your cash drawer has USB interface that can be hooked up the PC and
can be used wd usb function to see if it's there but your given escape sequence is only
to send current to open the drawer (ie physical detection ) and it's not duplex comm.

HTH

Cheers

King

von Kingdr - am 19.07.2016 21:23
Zur Information:
MySnip.de hat keinen Einfluss auf die Inhalte der Beiträge. Bitte kontaktieren Sie den Administrator des Forums bei Problemen oder Löschforderungen über die Kontaktseite.
Falls die Kontaktaufnahme mit dem Administrator des Forums fehlschlägt, kontaktieren Sie uns bitte über die in unserem Impressum angegebenen Daten.