?
Solved

Controlling the cash drawer opening on an Eclipse EP-T884 coupon printer

Posted on 2013-11-27
3
Medium Priority
?
760 Views
Last Modified: 2013-11-27
Good morning,
At last, I have decided to be part of this community to help me resolve problems or difficulties I encounter building my application. To make a very long story short, I have created a POS system using VBA and now I am converting it into an SQL server database.

I have a coupon printer that I use that is connected on 2 ports, the first port on COM4 and the second on USB001 (Virtual USB port), my problem today is that having an electronic cash drawer connected on an RJ45 behind the printer, I can control easily the opening of this device by COM4, however, for some other report, in this case a kitchen coupon, I do not want to have the cash drawer opens and in order to achieve that, I have to use a generic text only printer and the look of the coupon looks primitive.
So I am looking for the code to be able to disable the opening of that drawer while using the USB001 port.
Here is the code I use on COM4 that opens the cash drawer:

Dim intCOM4 As Integer
intCOM4 = FreeFile
Open "COM4" For Output As #intCOM4
Print #intCOM4, Chr$(16); Chr$(20); Chr$(1); Chr$(0); Chr$(4);
Close intCOM4

Using this is working great, what could be the code to disable that opening of the cash drawer, I have the manual for that printer (the ESC code), but can’t figure it out.

I was thinking that could control the cash drawer as well:

Dim intUSB001 As Integer
intUSB001 = FreeFile
Open " USB001" For Output As #intUSB001
Print #int USB001, Chr$(16); Chr$(20); Chr$(1); Chr$(0); Chr$(4);
Close int USB001

But the signal doesn’t works using the above code, USB001 is a virtual port but it should work, no? Anyway, this is not the reason of this question but if you can add some comments on that, that would be appreciate.

So, my cash drawer being connected directly to my coupon printer, anything I send using the normal driver on USB001, (not generic text only), makes the drawer kick out, so my question is how can I use the normal driver (THERMAL LK-TXXX)  and not have the drawer opens?

I was thinking something like sending some ESC code to disable the RJ45 port of the printer, print the coupon using the normal driver and then sending back some ESC code to enable the RJ45 port. Make any sense?

I have attached a PDF document with technical references regarding that printer.

Thank you
EP-T884-ESC-POS-Command-Manual.pdf
0
Comment
Question by:supportAutoCaisse
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 58

Accepted Solution

by:
Jim Dettman (Microsoft MVP/ EE MVE) earned 2000 total points
ID: 39680969
Check the driver settings.   There must be something in the driver causing the drawer to kick out.

I don't see anything in the command structure that allows you to disable the drawer port.

Jim.
0
 

Author Comment

by:supportAutoCaisse
ID: 39681832
Thanks Jim,
At first when I saw your answer I was thinking that it could not be that simple, guess what, it was, the only thing I had to do is creating a new printer, named it Kitchen printer and remove the open cash drawer from the commands, it works now perfectly.

Another proof to take the time to understand the right answer, thank you very much.

Claude
0
 

Author Closing Comment

by:supportAutoCaisse
ID: 39681838
A short answer right to the point, thanks!
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Phishing attempts can come in all forms, shapes and sizes. No matter how familiar you think you are with them, always remember to take extra precaution when opening an email with attachments or links.
Did you know that more than 4 billion data records have been recorded as lost or stolen since 2013? It was a staggering number brought to our attention during last week’s ManageEngine webinar, where attendees received a comprehensive look at the ma…
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.

801 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question