Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to determine if cash drawer is open ?

Status
Not open for further replies.

ldojoles

Programmer
Apr 1, 2007
22
PH
i have a Point of sales system, after the customer pays his amount due the ChangeDue dialog is activited the dialog is in showmodal state until the cashier presses any key or the system timer reaches 30sec for the next transaction... intead my program waits for the timer to expire... i want my program to detect if the cashbox is closed so it will automatically ready for the next transaction... i am using Posiflex cashbox connected to epson TMU220 via rj45... the printer is connected at LPT1.

my code suppose to look like this...

procedure TForm1.Timer1Timer(Sender: TObject);
begin
if cashbox <> close then
ChangeDialog.showmodal
else
ChangeDialog.close;


end;
 
cash draws usually dont have an open detection circuit so you will have to put one in yourself.

the simplest way would be to mount a switch in the draw that is wired to an unused key on the keyboard, so when the draw is open the program thinks the key is being held down.

Aaron
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top