Epson￿Commands￿

￿

 

 

Notes

 

 

Function

(ASCII, Decimal, Hexadecimal)

 

 

 

 

 

 

 

Absoulte Horizontal

ASCII: ESC $ n1 n2

Move to new horizontal position.

 

 

Position

Dec: 27 36 n1 n2

Amount of movement from left margin

 

 

 

Hex: 1B 24 n1 n2

is calculated as follows:

 

 

 

 

[n1 + (n2 x 256)] x (basic unit in inches),

 

 

 

 

where the basic unit is set by ESC (U, set

 

 

 

 

unit command. The default of the basic

 

 

 

 

unit is 1/60 inch.

 

 

 

 

n1=0 to 255

 

 

 

 

n2=0 to 255

 

 

 

 

n1=n2=0: left margin

 

 

 

 

Max. value: for 1/60 inch basic unit,

 

 

 

 

n1=48 n2=3(13.6" shift)

 

 

 

 

Space moved using this command will

 

 

 

 

not be underlined. DEL command will

 

 

 

 

not delete the skipped amount.

 

 

Relative Horizontal

ASCII: ESC \ n1 n2

Move to new horizontal position, rela-

 

 

Position

Dec: 27 92 n1 n2

tive to present position. Amount of

 

 

 

Hex: 1B 5C n1 n2

movement is calculated as follows:

 

 

 

 

± (n1+ [n2x256] x (basic unit in inches),

 

 

 

 

where the basic unit is set by ESC (U, set

 

 

 

 

unit command. The default of the basic

 

 

 

 

unit with LQ is 1/180 inch, and with

 

 

 

 

UTL it is 1/120 inch.

 

 

 

 

n1=0 to 255

 

 

 

 

n2=0 to 255

 

 

 

 

n1=n2=0: no movement

 

 

 

 

+ moves to right; - moves to left

 

 

Set Print Position

ASCII: ESC DLE @ Pn A1 A2 P1 P2

OKI unique command. Sets next hori-

 

 

 

P3 P4

zontal position of printhead.

 

 

 

Dec: 27 16 64 [data]

Pn= number of parameter bytes to fol-

 

 

 

Hex: 1B 10 40 [data]

low, range 0 to 255

 

 

 

 

A1= specifies whether motion is abso-

 

 

 

 

lute or relative: even-absolute from

 

 

 

 

left margin; odd=relative from present

 

 

 

 

position

 

 

 

 

A2= specifies direction of relative

 

 

 

 

movement: even= toward right margin

 

 

 

 

(forward); odd= toward left margin (re-

 

 

 

 

verse)

 

 

 

 

0 ≤ P1, P2, P3, P4 ≤ 9 representing

 

 

 

 

number of units to move (size of unit

 

 

 

 

depends on character pitch)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

82

Appendix C: Printer Commands