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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to issue command to open a Cash Drawer for POS

Status
Not open for further replies.

RayBec

Programmer
Joined
Dec 5, 2001
Messages
42
Location
US
Need to issue a command to open a cash drawer on a point of sale system. Any ideas on how to accomplish this via a command button? Thanks!
 
One method that I have used to work with Serial Port devices, in the old days, is to write to the file called "COM1:" or whichever comm port you have used.

However, I haven't tried this in VBA yet.

Now I have:

private function opencom1() as Long
dim a%
a% = freefile
use open "COM1:" for output as a%
opencom1 = a%
end function

this should return the file number for your "opened" com1:
You willneed to know what bytes/bits you need to send to open the drawer.

Hope it helps.

Deefa.
 
Thanks. I'll give it a try.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top