Many thanks everyone, especially pkailas. The crowbar worked a charm and it opened everytime!
Anyways, to bring this to a close, allow me to summarise for the benefit of anyone who might need to do this in the future.
Settings for cash drawers vary from manufacturer to manufacturer, so we need to enable the setting of the following parameters:
1. The type of cash drawer - this could be serial port, parallel port or even connected indirectly through a printer or display pole.
2. The Port - this depends on the type of cash drawer above.
3. The Baud Rate, Parity, Data Bits, Stop Bits - these should be, I believe, fairly standard settings and should not vary from manufacturer to manufacturer. Still, it might pay to take it anyway.
4. The Hex codes for opening the drawer and the Multiplier - these may vary between manufacturers. Generic settings may be "Ctrl-g" for Hex codes and 1 for Multiplier (which as koala15 said is the number of times you need to send the Hex code to the drawer before it opens)
To communicate with a cash drawer, you need to use the MsComm Control, and thanks to Harleyquinn, the code for opening the drawer looks like this:
MSComm1.CommPort = 1
MSComm1.Settings = "9600,n,8,1"
MSComm1.PortOpen = True
MSComm1.Output = "^g"
That's about it, I think. Am waiting for a demo cash drawer to try it out, and will let you guys know how it goes.
Anyway, if that fails, we can always use the crowbar like pkailas suggested.
![[bigcheeks] [bigcheeks] [bigcheeks]](/data/assets/smilies/bigcheeks.gif)