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 IamaSherpa 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
Dec 5, 2001
42
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top