OKI 791 User Manual
82
Appendix C: Printer Commands
Absoulte Horizontal
Position
Position
Relative Horizontal
Position
Position
Set Print Position
ASCII: ESC $ n
1
n
2
Dec: 27 36 n
1
n
2
Hex: 1B 24 n
1
n
2
ASCII: ESC \ n
1
n
2
Dec: 27 92 n
1
n
2
Hex: 1B 5C n
1
n
2
ASCII: ESC DLE @ P
n
A
1
A
2
P
1
P
2
P
3
P
4
Dec: 27 16 64 [data]
Hex: 1B 10 40 [data]
Hex: 1B 10 40 [data]
Epson
Function
Function
Commands
(ASCII, Decimal, Hexadecimal)
(ASCII, Decimal, Hexadecimal)
Move to new horizontal position.
Amount of movement from left margin
is calculated as follows:
Amount of movement from left margin
is calculated as follows:
[n
1
+ (n
2
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.
n
unit command. The default of the basic
unit is 1/60 inch.
n
1
=0 to 255
n
2
=0 to 255
n
1
=n
2
=0: left margin
Max. value: for 1/60 inch basic unit,
n
n
1
=48 n
2
=3(13.6" shift)
Space moved using this command will
not be underlined. DEL command will
not delete the skipped amount.
not be underlined. DEL command will
not delete the skipped amount.
Move to new horizontal position, rela-
tive to present position. Amount of
movement is calculated as follows:
tive to present position. Amount of
movement is calculated as follows:
±
(n
1
+ [n
2
x256] 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.
unit command. The default of the basic
unit with LQ is 1/180 inch, and with
UTL it is 1/120 inch.
n
1
=0 to 255
n
2
=0 to 255
n
1
=n
2
=0: no movement
+ moves to right; - moves to left
OKI unique command. Sets next hori-
zontal position of printhead.
Pn= number of parameter bytes to fol-
low, range 0 to 255
zontal position of printhead.
Pn= number of parameter bytes to fol-
low, range 0 to 255
A
1
= specifies whether motion is abso-
lute or relative: even-absolute from
left margin; odd=relative from present
position
A
left margin; odd=relative from present
position
A
2
= specifies direction of relative
movement: even= toward right margin
(forward); odd= toward left margin (re-
verse)
0
(forward); odd= toward left margin (re-
verse)
0
≤
P
1
, P
2
, P
3
, P
4
≤
9 representing
number of units to move (size of unit
depends on character pitch)
depends on character pitch)
Notes