7 Nov '14

Shiva Prasad

A collection of source codes that I wrote in VB 6.0, ASP.NET, PHP, C#.NET, VB.NET and JAVA in a course of my career as web developer and software engineer that I would like to share to my fellow programmers. Some of the codes here is not my original work that I found over the Internet and Books while I'm learning how to program. I hope you find my work useful in your learning in programming. Please share my work to other people also who interested to learn the basics of web development and programming. Thank you very much and Happy Productive Programming Everyone.

Cash drawer software

Cash drawers are very popular in retail shops and it is one of the main component for every Point of Sale System(POS). There is some code to implement this component with our software system. Our Cash drawer software has source code which checks Machine status i.e; machine connected or not, Machine Open/Close, Machine serial number, Installation date, Machine revision, Manufacture date, etc. Using this source code you can open the cashDrawer and print the bill without any problem.

Cash drawer software

Cash drawer software

How it works:
0 — If the cash drawer CLOSED, the return value is zero.
1 — If the cash drawer OPENED, the return value is one.
2 – The error of printer doesn’t OPEN yet.
3 – Spooler operation error.
5 – Re-opened error.
Else – If the function fails, the return value is nonzero.

Different Functions of this machine:
ppstOPEN  – 
To OPEN printer driver port of the assigned printer name. This function needs to execute before to get cash drawer status.
ppNAME – The printer name of printer driver.
ppstCLOSE – To CLOSE printer driver port of the opened printer name. This function needs to execute before the end of application.
ppstGET – To get OPEN ED or CLOSED status of cash drawer that connected to opened printer name.

Operating system:
This utility supports Windows 9x/NT/2000/XP/VISTA/Windows 7/Windows 8.

Programming language:
The source code of this project is available in C Program, C ++ program,  Visual basic, VB.NET and JAVA.

The below download link has sample code which you can copy paste to your projects.

download link all

Note: We have purchased cash register drawer machine from Posiflex. This Cash drawer comes with 2 PC keys, cash drawer bottom plate, Separator of bill compartment 4 pcs, coin compartment 6 pcs, USB connector and Power adapter. User must install the driver required to control the Posiflex USB Cash Drawer is called “USBCR.DLL”.

Related Posts

    No posts found.

  • Atul Upadhyay

    cn any 1 create a project on any topic in .net