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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to send Esc code to Epson LQ-590II for draft, courier, etc. 1

Steve Yu

Programmer
Nov 6, 2021
128
US
Hello colleagues,


Above is an old thread that deals with exactly the same issue as I'm having now.
My code:

mpname = GETPRINTER()
SET PRINTER TO NAME &mpname
SET DEVICE TO print
SET PRINTER on
??? chr(27) + "x" + "0" && draft mode
??? chr(27) + "k" + "2" && courier
? "Hello World"
set printer to

The front panel display of Epson does not change, showing 'script' instead of USD or HSD.
Any output after that seems to resemble letter quality, not the draft mode I expected.
And the courier font does not seem to work either.

Help appreciated.
 
I wouldn't have guessed that, from the other end of it. When you do SET PRINTER TO NAME somename, that's done before you even start a print job, it only selects the printer that the next REPORT FORM uses. So SET PRINTER TO nothing only unselects any printer as current printer. And on the other hand how should SET PRINTER OFF not end a print job.

Well, good you got that, then it shouldn't be a problem to put it all together.

I know you still have to forward this to others on site. How about writing a PRG they just DO, or 2,3,4,5 PRGs? I'm sorry for not having an Epson LQ-590II to be able to test this for you.
 
I wouldn't have guessed that, from the other end of it. When you do SET PRINTER TO NAME somename, that's done before you even start a print job, it only selects the printer that the next REPORT FORM uses. So SET PRINTER TO nothing only unselects any printer as current printer.

Well, good you got that, then it shouldn't be a problem to put it all together.
Thanks for the advice always.
 

Part and Inventory Search

Sponsor

Back
Top