Open cash drawer

I trying to use receipt printer (Star TSP100) connected to cash drawer. its print Ok , but I can't open cash drawer.
khaled salemSoftware DeveloperAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Sinisa VukSoftware architectCommented:

If you use com port component send following string:

#27+#112+#48+char(30)+char(30)

where 30 is half-period of square signal.

0
khaled salemSoftware DeveloperAuthor Commented:
The cash drawer is not connected directly to my PC.The Cash drawer connect via printer (STAR TSP100) after print it should be opened.
0
Sinisa VukSoftware architectCommented:


Concatenate strings and send to printer:
...
s := <text to print> + <open drawer string>;
SendToComPort(s);
...

Printer will do rest.
0
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

olmyCommented:
If you are using TSP100 as a normal windows printer, you can define drawer to open automaticly in printer properties "Device settings"-page, by setting "Open after printing"-value into "Cash Drawer 1" parameter.

See the embedded image below.
Screencapture of printer properties
I hope this helps.

Best regards
  Janne
0
khaled salemSoftware DeveloperAuthor Commented:
Yes, I'm using using TSP100 as a normal windows printer. but i didn't find this setting. as you see in attached image    
tsp.png
0
olmyCommented:
I'm guessing, that you will find correct parameter from "Peripheral Unit 1:"-option and clicking "No Use" setting will probably reveal "Open after printing" value or something similar.

Unfortunately I don't have TSP100 printer on site and Windows 7 dosen't show disconnected devices drivers, so I cannot check this my self.

I hope this helps :)
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Sinisa VukSoftware architectCommented:

It is possible that you want to print without to open drawer. So upper solution is not ideal.
Try to send esc characters (and text) to open drawer with this function:

http://www.swissdelphicenter.ch/torry/showcode.php?id=716

0
khaled salemSoftware DeveloperAuthor Commented:
olmy: Thank you very much, I've installed version 2.4 driver for TSP. I've found Open after print
0
olmyCommented:
Excellent! I'm glad that you found a sollution to your problem and thank you for accepting my answer :).
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Programming

From novice to tech pro — start learning today.