PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → [WD20] Receipt Printer - Opening the Cash Drawer
[WD20] Receipt Printer - Opening the Cash Drawer
Iniciado por guest, 01,sep. 2017 22:17 - 4 respuestas
Publicado el 01,septiembre 2017 - 22:17
I'm attempting to support 2 more brands of receipt printer in my application. I have a Star TSP100 working well. I'm trying to add a POS-X Evo Green and a Citizen CT-S310II.

I have the Citizen set up correctly except for opening the cash drawer. For the Star I use:

iEscape(Charact(7)) // Open drawer attached to Star printer iEndPrinting()
This does not work for the Citizen. From this site I found these codes 27,112,0,25. So for the Citizen I have:

iEscape(Charact(27) + Charact(112) + Charact(0) + Charact(25)) // Open drawer attached to Citizen printer iEndPrinting()
1. The new escape sequence opens the drawer, but it makes the printer error led light up, and the printer is unavailable in Windows until I turn it off and back on. I've tried multiple combinations of that escape sequence and can't get it right.

2. For the POS-X Evo I can get the drawer to open with a number of sequences from the combining the numbers above, but every sequence that successfully opens the cash drawer also feeds some paper.

I believe I have both drivers correctly installed. Does anyone have experience with either of these printers? Is there a certain printer property/preference that I may be missing?
Publicado el 01,septiembre 2017 - 22:39
hi

strange,

I followed your link and the citizen is NOT on this page, it's on another one of the same site, and it's NOT the same esc sequence that the one you are using:
http://keyhut.com/popopen.htm
code: 27,112,0,50,250

Best regards
Publicado el 01,septiembre 2017 - 22:48
Oops. I am actually using 27,112,0,50,250 for the Citizen. The one I listed is actually what I found for the Pos-X printer.

iEscape(Charact(27) + Charact(112) + Charact(0) + Charact(25)) // Open drawer attached to Citizen POS-X printer
Publicado el 02,septiembre 2017 - 03:45
Curtis

I have a kiosk application that prints, can I ask how you handle printer errors, such as out of paper, etc?

Thanks
Rob
Publicado el 05,septiembre 2017 - 17:07
I currently don't do anything specific to handle printer errors. I do have options to reprint just about everything.