Appendix E EPSON LQ, ESC/P2, Quick Reference
Escape Sequence
ESC & NUL P1 P2 P3 P4 P5 v1 .. vn
Notes:
This Command defines one or more characters in a RAM character table.
All User Defined Characters are erased when the printer is switched off.
Set the Interface Buffer to 1k or 8K (max 50 defined char in LQ, 128 in draft), or use a
RAM card for up to 128 User Defined Characters in LQ.
Set maximum every second dot to "1" in a horizontal line!
User Defined Characters can be defined in four different print modes:
resolution (vertical x horizontal)
Normal Size with Draft:
Normal Size with LQ / proport.:
Sub-/ Superscript with Draft:
The characters can only be activated in the same mode as defined. The character layout is
coded in three bytes (24 bit vertical) or two bytes (16 bit vertical) per column, top to
bottom.
To print the character change to the User Defined Character Set
with ESC %
vertical box, normal size with draft at code table position "41" (P3=8, P4=5, P5=8)
Examlpe:
hex: 1B 26 00 41 41 08 05 08 FF FF FF 00 00 00 80 00 01 00 00 00 FF FF FF
Function
Define User Defined Characters
P1 = first code table position
P2 = last code table position
(P1 = 0/0...P2)
P3 = front space
P4 = body length
P5 = rear space
(P5 = 0/0...5/0) v1 .. vn = binary data in hex
(vn = 0/0...F/F)
24 x 15
24 x 37
16 x 15 Sub-/ Superscript with LQ / proport.:
16 x 37
(P2 = P1...7/F)
(P3 = 0/0...5/0)
Draft: (P4 = 0/0...0/F)
LQ: (P4 = 0/0...2/5)
E-7