Solved

Open a cash drawer

Posted on 2006-10-28
3
1,277 Views
Last Modified: 2009-04-18
Hi, i have a Point of sale program that use a epson tmu200 printer. also it usea a cash drawer. the cash drawer is connected to the printer epson by a rj11 cable, the pirnter epson send a pulse and open the cash drawer. the printer epson is a paraler port

i use this code

Open "LPT1:" & strcommNumber For Output As #1
Print #1, Chr(27) + Chr(112) + Chr(0)
Close #1

if i use a serial , or a usb port printer, it don,t  open the cash drawer, the code is just for pararel port printers.

The question is some body know the code to open tha cash drawer with a usb port printer ?
0
Comment
Question by:cano63
3 Comments
 
LVL 1

Accepted Solution

by:
ogog earned 250 total points
ID: 17830019
i used to do this by using the "virtual" com ports. Scince the USB is always associated with a com: port.

try replacing LPT1: by COM1:, COM2... etc. try them all. In my PC i've got a total of 9 COM: ports!

here is what i used, it's working fine:

        Open "COM1:" For Output As #1
            Print #1, Chr$(27); Chr$(112); Chr$(0)
        Close #1

it's just like yours but i'm using the coms. try all numbers untill you get it right. (see in the harware panel how many you've got)

tell me how it goes.
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

746 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now