Opening cash drawer via RJ12 phone jack

latex88

Registered User.
Local time
Today, 15:05
Joined
Jul 10, 2003
Messages
198
I want to build a command button to open a cash drawer without going through a printer. I learned the printer codes for this particular printer are 27,112,32,25. Can anyone help me with the VB codes to achieve this?
 
Latex,

On the surface:

Code:
Open "LP:" For Output As #1
Print #1, Chr(27) & Chr(112) & Chr(32) & Chr(25);
Close #1

Drop the ";" at the end if you don't want a carriage-return.

This assumes your printer is connected to "LP:".

Wayne
 
Thank you for your response, Wayne. I just now realized the computer I have does not have a RJ12 output :o. Currently the cash drawer would open if the printer prints out when the cash drawer is connected to the printer. You have any idea how I can send a signal to the printer to open the drawer without printing?
 

Users who are viewing this thread

Back
Top Bottom