Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

quickbasic 4.5 : get a return code from a LPT port

Status
Not open for further replies.

KateCM

Programmer
Oct 7, 2002
2
FR
I would like to read a return code from an parallel port.
I open a LPT port as OUTPUT
I have an EPSON printer with a drawer behind it
I send a command to the printer to know the drawer state (close or open)
When I want to read the state with an INPUT$, quickbasic tell that it can't read from an output file; but I can only open this file with OUTPUT.
How can I do to get this retun code

 
You shouldn't try to communicate directly to the printer. Get a list of interrupts so that you can ommunicate with the printers driver.
 
Look in the help files for:

Errdev and Errdev$
IOCtrl and IOCtrl$

these may help.
 
KateCM,

What sort of Epson printer do you have and where did you get it from?. I think you may be talking about Epson PoS printers in which case I can help you out, but I need to know the printer model and where it came from.

Regards
Niall
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top