Cash drawers are very common in retail outlets and are one of the main components of a point of sale facility (POS). There is some sort of coding for this component to be inserted into our development framework. Our cash drawer program has a source code that tests the state of the computer, i.e. the system attached or not connected, the machine opens/closed, the serial number of the machine, the date of operation, the overhaul of the machine, the date of development, etc. You should open the cash drawer using this source code and print the bill without any problems.
How it works:
0- The return value is zero if the cash drawer is closed.
1- If you have opened the cash box, the refund value is one.
2- Also the printer error is not OPEN.
3- Spooler operation error.
5- Re-opened error.
Else- Otherwise, the return value is zero if the operation succeeds.
Different Functions of this machine:
ppstOPEN – OPEN the printer driver port with the name of the printer allocated. Before achieving cash drawer status, this role must be performed.
ppstNAME – The name of the printer on the printer engine.
ppstCLOSE – CLOSE the printer driver port with the name of the open printer. This role has to be performed before the program expires.
ppstGET – Retrieve the OPENED or CLOSED state of the cash drawer related to the name of the open printer.
This utility supports Windows 9x/NT/2000/XP/VISTA/Windows 7/Windows 8.
C Application, C++ Program, Visual Basic, VB.NET, and JAVA provide the source code for this project.
Note: We purchased a machine with a Posiflex cash register drawer. With 2 PC keys, cash drawer bottom plate, 4-pcs bill pocket separator, 6-pcs coin compartment, USB port, and power adapter, this cash drawer comes with 2. The user must load a driver called “USBCR.DLL” to monitor the Posiflex USB Cash Drawing.