102 Appendix D: Printer Commands
Move to the Left
(Backwards)
Self Left & Right Margins
Engage/ Disengage
Unidirectional Printing
Backspace
Set Print Position
ASCII: ESC e n
1
n
2
Dec: 27 101 n
1
n
2
Hex: 1B 65 n
1
n
2
ASCII: ESC X n m
Dec: 27 88 n m
Hex: 1B 58 n m
ASCII: ESC U n
Dec: 27 85 n
Hex: 1B 55 n
ASCII: BS
Dec: 8
Hex: 08
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]
IBM
Function
Commands
(ASCII, Decimal, Hexadecimal)
Move to the left, relative to present posi-
tion, calculated as
(n
1
=[n
2
x 256])/ 120 inches
n
1
=0 to 255
n
2
=0 to 255
n
1
=n
2
=0: no movement
Sets left (n) and right (m) margins in
character columns at current pitch. Once
set, margins remain fixed even if charac-
ter pitch is changed. m must be at least
10 character space (at 10 cpi) to the right
of n.
n=0 to 255; n=0: left margin unchanged
m=0 to 255; m=0: right margin un-
changed
n=1: Unidirectional printing On
n=0: Unidirectional printing Off (return
to bidirectional)
Prints data in buffer and moves one
character to the left according to current
character pitch.
OKI unique command. Sets horizontal
position of printhead.
P
n
: specifies number of bytes to follow,
range 0 to 127 (MSB ignored)
A
1
: specifies if motion is absolute (even
number) or relative (odd number)
A
2
: specifies direction of relative move-
ment right (even number) or left (odd
number)
P
1
, P
2
, P
3
, P
4
=0 to9: specify print posi-
tion, in four digits:
(P
1
x 1000) + (P
2
x 100) + (P
3
x 10) + P
4
Unit of print position is
1
/
360
inch in LQ
mode;
1
/
240
inch in Utility mode.
Maximum default value for left and
right margins: 2880 for ML390 Turbo:
4896 for ML 391 Turbo
Notes