PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → Open Cash Drawer Star TSP100
Open Cash Drawer Star TSP100
Iniciado por guest, 19,abr. 2013 11:03 - 4 respuestas
Publicado el 19,abril 2013 - 11:03
Hello,

A question for the POS developers here :

I want to open a cash drawer connected to a Star TSP100 ticketprinter.
This printer is connected via USB, but it has also a tool to use a virtual serial port.

When using a virtual serial port, I can open the drawer with

sWrite(printerPort, Charact(7))

So far, so good.

Now I would like to use the printer without using a virtual serial port, with this code

iConfigure(PrinterName)
iDestination(iPrinter,"")
iEscape(Charact(7))
iEndPrinting

In this case, the drawer opens, but the printer always feeds a little bit of paper and than cuts the paper.
Anyone has any idea to avoid this ?

Thx !

Regards,
Bart
Publicado el 24,abril 2013 - 12:28
It was a setting in the driver that caused the problem.
Publicado el 03,febrero 2014 - 14:24
Hello Bart VDE,

what setting on the driver ? We have the same problem !

Thx in advance.
Pedro...
Publicado el 03,febrero 2014 - 14:33
What was the setting ? And where do you get these IConfigure, IDestination, etc.... ?
We have similar problems.

Pedro...
Publicado el 11,marzo 2015 - 16:03
Hi
How do you use the virtual serial port in Windev. I have configure the virtual serial port in the config tools and set it to 1. In my program I run the following code :
SI sOuvre(numport, 4096, 4096, 100) ALORS
sFixeParamètre(numport, 9600, 0, 8, 0, Vrai, Vrai, Vrai)
sEcrit(numport,Caract(27) + Caract(64))
SINON
// Erreur d'ouverture du port
Erreur("Erreur d'ouverture du port d'impression " + numport +" ...!!!","Message d'erreur : " + ErreurInfo(errComplet))
FIN

I get an error Code erreur :100126

Any help?

Runing on win 7 64bits
windev Version 20