Programming ESC/P (Epson FX800)
Programming ESC/P (Epson FX800)
Could anyone let me know if it's possible to send ESC/P (Epson) codes from Superbasic to select the several printer characters? Can you give me some examples to change the fonts please?
Thanks
Thanks
Re: Programming ESC/P (Epson FX800)
Sure is.
Without TK2, you should be doing something like:
or
In case you have Toolkit 2 at hand, you can replace the PRINT statements with BPUT, those are guaranteed to go untranslated (PRINT might be affected by TRA).
An ESC/P2 manual can be found at the Epson sites.
https://files.support.epson.com/pdf/gen ... cp2ref.pdf
Tobias
Without TK2, you should be doing something like:
Code: Select all
10 OPEN #3,ser1
20 PRINT #3;CHR$(15); : REMark switch printer to condensed
30 CLOSE #3
Code: Select all
10 OPEN #3,ser1
20 PRINT#3;CHR$(27);'k';CHR$(4); : REMark switch to "Script" typeface
30 PRINT#3;"Hello World"
40 CLOSE #3
An ESC/P2 manual can be found at the Epson sites.
https://files.support.epson.com/pdf/gen ... cp2ref.pdf
Tobias
ʎɐqǝ ɯoɹɟ ǝq oʇ ƃuᴉoƃ ʇou sᴉ pɹɐoqʎǝʞ ʇxǝu ʎɯ 'ɹɐǝp ɥO
Re: Programming ESC/P (Epson FX800)
Thank you very much for both examples and manual
Yes, I have TK2, but actually I need to change the font (times, arial etc.), not the style/typeface (bold, italic...)

Yes, I have TK2, but actually I need to change the font (times, arial etc.), not the style/typeface (bold, italic...)
Re: Programming ESC/P (Epson FX800)
Once you have read the Epson manual, you will have come to the conclusion that font and typeface is nearly the same in Epson terminology (look at ESC k, they're saying it changes the typeface, but it's actually changing the font, like Roman, Sans, Script....) 
ESC/P has had a long development history and thus not always logical terminology and even sorting.
Tobias

ESC/P has had a long development history and thus not always logical terminology and even sorting.
Tobias
ʎɐqǝ ɯoɹɟ ǝq oʇ ƃuᴉoƃ ʇou sᴉ pɹɐoqʎǝʞ ʇxǝu ʎɯ 'ɹɐǝp ɥO
Re: Programming ESC/P (Epson FX800)
Sure, I'm going to read ittofro wrote:Once you have read the Epson manual,

Thanks!
Re: Programming ESC/P (Epson FX800)

The investigation continues.....
-
- RWAP Master
- Posts: 2893
- Joined: Sun Nov 28, 2010 4:51 pm
- Location: Stone, United Kingdom
- Contact:
Re: Programming ESC/P (Epson FX800)
Yes I am afraid so - it depends on whether the printer uses ESC/P or ESC/P2 and even then it can be just a subset - I recently had a Stylus Colour 300 printer which supports ESC/P2, BUT not lower case characters - now that is a really weird restriction - I was scratching my head for a while as to why a test string of
"Hello World today is 2015-03-11 "
Came out as
H W 2015-03-11
I have a full ESC/P2 programming manual and believe it is available online - it has a list of what commands are supported on which printers from memory - but ends at the Stylus Colour 200...

"Hello World today is 2015-03-11 "
Came out as
H W 2015-03-11
I have a full ESC/P2 programming manual and believe it is available online - it has a list of what commands are supported on which printers from memory - but ends at the Stylus Colour 200...

Rich Mellor
RWAP Software
RWAP Adventures
SellMyRetro
Retro-Printer Module - add a USB printer to your QL
Also Involved in:
Icephorm
RWAP Software
RWAP Adventures
SellMyRetro
Retro-Printer Module - add a USB printer to your QL
Also Involved in:
Icephorm
Re: Programming ESC/P (Epson FX800)
Absolutely weird!RWAP wrote: "Hello World today is 2015-03-11 "
Came out as
H W 2015-03-11

Thank you! Very interesting information. Does anybody know where?RWAP wrote: I have a full ESC/P2 programming manual and believe it is available online - it has a list of what commands are supported on which printers from memory - but ends at the Stylus Colour 200...
In any case it's not an actual problem for me, since I can change the fonts via PC
Re: Programming ESC/P (Epson FX800)
Hmmm. Bad move.Cristian wrote: Does anybody know where?

Do what you're told: READ

See manual linked above "Command Table" - T2-22. All supported commands check marked per printer.
Tobias
ʎɐqǝ ɯoɹɟ ǝq oʇ ƃuᴉoƃ ʇou sᴉ pɹɐoqʎǝʞ ʇxǝu ʎɯ 'ɹɐǝp ɥO
Re: Programming ESC/P (Epson FX800)
Wow, are you always so serious Tobias?tofro wrote:Hmmm. Bad move.Cristian wrote: Does anybody know where?
Do what you're told: READ![]()
See manual linked above "Command Table" - T2-22. All supported commands check marked per printer.
Tobias

Yes, I did read the manual (a wonderful manual, thanks!) but I'm afraid my printer is too new.
In any case, thank you again for your prompt replies
