Foros Club Delphi

Foros Club Delphi (https://www.clubdelphi.com/foros/index.php)
-   Impresión (https://www.clubdelphi.com/foros/forumdisplay.php?f=4)
-   -   Abrir Cash Drawer desde Una Star SP500 (https://www.clubdelphi.com/foros/showthread.php?t=20443)

Jorge Taveras 15-04-2005 14:59:39

Abrir Cash Drawer desde Una Star SP500
 
Buenas tengan... En en foro encontré un hilo referente a impresoras epsion TM-U220 por MEETWORKS. Establece el siguiente procedimiento.

procedure AbreCaja
var f:textfile;
begin
AssignFile(f,'lpt1');
try
Rewrite(f);
Writeln(f,#27+'p0'+#100+#0);
finally
CloseFile(f);
end;
end;

Intenté este codigo y no me funcionó. El cash Drawer trajo una hoja de operación donde dice que 'para abrir la caja de dinero con una EPSON compatible printer usando QBASIC es #1, CHR$(&H1B);"P";CHR$(0);CHR$(100);CHR$(250);

El manual sp500 que crajo la impresora no especifica codigo de escape.
Instalé por defecto una impresora generica e hice los intentos ya señalados y el cash drawer no habe, espero me ayuden lo antes posible...
con afecto jorge

marcoszorrilla 15-04-2005 15:53:46

Leete esto que sigue a ver si logras algo:
Cita:

To enable cash drawer and cash drawer control codes
To enable a cash drawer in connection with the current workstation, check the 'Enable Cash Drawer' check box for up to 2 cash drawers. These cash drawers are controlled by the receipt printer. The "Open Drawer Codes" are called an escape sequence. Some common escape sequences for popular printers are listed below. Consult the printer's manual if these codes are not adequate. If one set of codes does not work for the cash drawer being set up, try a different set of codes from the same brand of printer.

Printer-controlled cash drawers are sold for the brand of printer being used.

Epson and Samsung control codes:

Epson cash drawer trigger: 27,112,0,64,240 (Cash drawer 1), 27,112,1,64,240 (Cash drawer 2). An adapter cable must be purchased separately from a POS hardware vendor to control two cash drawers with one printer cash drawer port.

Alternate cash drawer trigger: 27,112,0,48

Partial cut (option): 27,105

Epson printers known to support dual cash drawers are as follows:



  • TM-T88III
  • TM-L90
  • TM-T90
  • TM-U200
  • TM-U220
  • TM-U230
  • TM-U325
Star control codes:

Cash drawer trigger: 7 (Cash drawer 1), 25 (Cash drawer 2). If cash drawer clicks but does not open, use this code: 27,7,20,20,7

An adapter cable must be purchased separately from a POS hardware vendor to control two cash drawers with one printer cash drawer port.

Star printers known to support dual cash drawers are as follows:

  • SP500
  • TSP400 series
  • TSP600 series
  • TSP700 series
  • TSP800 series
Partial cut (option): 27,100,48 or 27,100,49

Citizen control codes:

Cash drawer trigger: 7

Partial cut (option): 27,80,00 or 27,80,01

(Some Citizen printers also use Epson control codes)

Ithaca POSjet control codes:

Cash drawer trigger: 27,120,1

Auto-cut (option): 27,118

Run Macro (for logo printing) <27><31><114>macro name<0> (Use only with POSjet driver)

Note: A workstation must have an open till for a no sale to open the cash drawer.

Un Saludo.

Jorge Taveras 16-04-2005 05:37:17

Gracias marcoszorrilla, funcionó al primer intento...


La franja horaria es GMT +2. Ahora son las 18:37:29.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Traducción al castellano por el equipo de moderadores del Club Delphi