IBM￿

Commands￿

￿

 

 

Notes

 

 

Function

(ASCII, Decimal, Hexadecimal)

 

 

 

 

 

 

 

Overscore

ASCII: ESC _ n

Prints a continuous overscore over all

 

 

 

Dec: 27 95 n

text characters except for tab spaces.

 

 

 

Hex: 1B 5F n

n=0 to 255

 

 

 

 

n=odd: start overscore

 

 

 

 

n=even: stop overscore

 

 

Graphics, 8-Pin Mode

 

 

 

 

For all 8-pin graphics

 

 

 

 

commands the number of

 

 

 

 

dot columns of graphic

 

 

 

 

data=n1 + (n2 x 256)

 

 

 

 

Single Density Graphics

ASCII: ESC K l h [graphics data]

Dot density 60 dpi horizontal, 72 dpi

 

 

 

Dec: 27 75 l h [graphics data]

vertical.

 

 

 

Hex: 1B 4B l h [graphics data]

Maximum data per line: ML390 Tur-

 

 

 

 

bo=480: ML391 Turbo=816

 

 

 

 

l,h=0 to 255: specifies amount of subse-

 

 

 

 

quent Bit Image bytes received, calculat-

 

 

 

 

ed as l + (h x 256).

 

 

Double Density Graphics

ASCII: ESC L l h [graphics data]

Dot density 120 dpi horizontal, 72 dpi

 

 

 

Dec: 27 76 l h [graphics data]

vertical.

 

 

 

Hex: 1B 4C l h [graphics data]

Maximum data per line: ML390 Tur-

 

 

 

 

bo=960: ML391 Turbo=1632

 

 

 

 

l, h=0 to 255: specifies amount of subse-

 

 

 

 

quent Bit Image bytes received,

 

 

 

 

calculated as l + (h x256).

 

 

Quasi-Double Density

ASCII: ESC Y l h [graphics data]

Same as low speed double density (120

 

 

Graphics

Dec: 27 89 l h [graphics data]

dpi), but printer can't put two adjacent

 

 

 

Hex: 1B 59 l h [graphics data]

dots in the same row.

 

 

Quadruple Density

ASCII: ESC Z l h [graphics data]

Dot density 240 dpi horizontal, 72 dpi

 

 

Graphics

Dec: 27 90 l h [graphics data]

vertical. Printer can't put two adjacent

 

 

 

Hex: 1B 5A l h [graphics data]

dots in the same row.

 

 

 

 

Maximum data per line: ML390 Tur-

 

 

 

 

bo=1920: ML391 Turbo=3264

 

 

 

 

l,h=0 to 255: specifies amount of subse-

 

 

 

 

quent Bit Image bytes received,

 

 

 

 

calculated as l + (h x 256).

 

 

Set Aspect Ratio for Bit

ASCII: ESC n n

In PPR emulation, sets ratio of vertical to

 

 

Image Graphics

Dec: 27 110 n

horizontal dot density in bit image

 

 

 

Hex: 1B 6E n

graphics. Valid only for ESC K, ESC L,

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

114

Appendix D: Printer Commands