Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How To Determine If Cash Drawer Is Open
Message
From
02/12/2001 16:20:59
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00586805
Message ID:
00588535
Views:
27
Hi Charles,
In addition to Sergey's advice, I can add all of the drawers I've worked with only need a pulse to open. I haven't seen one that notifys the program when it's closed. The open pulse triggers a relay which opens a mechanical latch. Issuing another open pulse does no harm when the draw is already open.

>Hi All!
>
>I have this project regarding a POS system and like all POS systems, it uses a cash drawer. I know already how to programmatically open the cash drawer, but my dilemna now is how do i determine if it has already been closed. I was able to open the drawer by opening a communication port (COM1) using FOPEN and "wrote" some character data to open it using FWRITE. Question is, how do i know if the cash drawer was closed already? When the cash drawer closes, does it "write" back something? If so, what?
>
>Thanks in advance.
Tony
Skill comes from Diligence
Previous
Reply
Map
View

Click here to load this message in the networking platform