Previous in Forum: Vista OS is Slow   Next in Forum: Microsoft Excel and MATLAB
Close
Close
Close
6 comments
Rate Comments: Nested
Active Contributor

Join Date: Mar 2008
Posts: 15

How to open cash drawer

10/08/2008 6:23 AM

i have a software for printing bills. when i click the "print" button, i can get the receipt but it won't open the cash drawer. the cash drawer connect via a cable from the printer. printer is connected via a COM port. how can i open the cash drawer when i press the "print" button on that software.

can't we write a program to open the cash drawer when the printing in process!

Register to Reply
Interested in this topic? By joining CR4 you can "subscribe" to
this discussion and receive notification when new comments are added.
Guru
United Kingdom - Member - Not a New Member Hobbies - Musician - New Member Hobbies - Fishing - New Member

Join Date: May 2006
Location: Reading, Berkshire, UK. Going under cover.
Posts: 9684
Good Answers: 468
#1

Re: How to open cash drawer

10/08/2008 6:57 AM

What is the cash draw lock connected to? How do you usually open it?

__________________
"Love justice, you who rule the world" - Dante Alighieri
Register to Reply
Guru
Popular Science - Biology - New Member Hobbies - Musician - New Member APIX Pilot Plant Design Project - Member - New Member Hobbies - CNC - New Member Fans of Old Computers - ZX-81 - New Member

Join Date: Jan 2007
Location: Centurion, South Africa
Posts: 3921
Good Answers: 97
#2

Re: How to open cash drawer

10/08/2008 10:29 AM

you could use one of the unused 232 control lines to activate the release solenoid,

for programming one need to know the operating system and the compiler.

__________________
Never do today what you can put of until tomorrow - Student motto
Register to Reply
Active Contributor

Join Date: Mar 2008
Posts: 15
#3
In reply to #2

Re: How to open cash drawer

10/09/2008 3:28 AM

cash drawer opens frequently.(it's in my shop). os is windows xp and software is written using C++

can anybody knows to write a program to open cash drawer when COM port is active (it mean when printing a bill)

Register to Reply
Guru
Popular Science - Biology - New Member Hobbies - Musician - New Member APIX Pilot Plant Design Project - Member - New Member Hobbies - CNC - New Member Fans of Old Computers - ZX-81 - New Member

Join Date: Jan 2007
Location: Centurion, South Africa
Posts: 3921
Good Answers: 97
#4

Re: How to open cash drawer

10/09/2008 6:19 AM

Please open the rs232 connector at the printer side and determine the pin numbers to what the solenoid is connected to.

__________________
Never do today what you can put of until tomorrow - Student motto
Register to Reply
Active Contributor

Join Date: Mar 2008
Posts: 15
#5
In reply to #4

Re: How to open cash drawer

10/14/2008 11:18 PM

it has 4 pins (the socket is like as telephone socket)

Register to Reply
Anonymous Poster
#6

Re: How to open cash drawer

12/22/2008 12:38 AM

Hi schathuranga,

This is vb code to open cash drawer. Make sure the cash drawer connect via a cable RJ11 from the printer.

Good luck.

Dim intFileNo As Integer = FreeFile() 'don't need this
FileOpen(1, "c:\escapes.txt", OpenMode.Output)
PrintLine(1, Chr(27) & "p" & Chr(0) & Chr(25) & Chr(250))
FileClose(1)
Shell("print /d:lpt1 c:\escapes.txt", vbNormalFocus)

Register to Reply
Register to Reply 6 comments
Copy to Clipboard

Users who posted comments:

Anonymous Poster (1); Hendrik (2); JohnDG (1); schathuranga (2)

Previous in Forum: Vista OS is Slow   Next in Forum: Microsoft Excel and MATLAB

Advertisement