Select Graphics Mode

Select Graphics Mode

ASCII Code ESC [p1;p2;p3 q

Hex Code 1B 5B p1 3B p2 3B p3 71

Dec Code 27 91 p1 59 p2 59 p3 113

Expression CHR$(27);“[p1;p2;p3q”;

Purpose Selects the graphics mode format and horizontal/vertical density for dot graphics.

This sequence must be sent before entering the graphics mode with ESC P.

Discussion The first parameter selects the graphics mode (Table 13). The second parameter selects the vertical dot spacing (Table 14) and the third selects the horizontal dot spacing (Table 15).

Table 13. Select Graphics Mode

p1

Selects Graphics Mode

0Vertical Format @ 70H x 72V DPI*

1Invalid, default to 70H x 72V DPI

2Vertical Format @ 140H x 144V DPI

3Invalid, default to 70H x 72V DPI

4Horizontal Format (plot mode)

*p2 and p3 are ignored in this mode.

Table 14. Select Vertical Dot Spacing

p2

 

 

Selects Vertical Density

 

 

 

 

 

 

0 through 6

144

DPI

7+

72

DPI

 

 

Table 15. Select Horizontal Dot Spacing

 

 

 

 

p3

 

 

Selects Horizontal Density

 

 

 

 

 

 

0 through 3

240

DPI - 544 characters per line

4

180

DPI - 408 characters per line

5

140

DPI - 317 characters per line

6 through 7

120

DPI - 272 characters per line

8 through 10

70

DPI - 158 characters per line

11+

60

DPI - 136 characters per line

 

 

 

 

47

Page 47
Image 47
Printronix ANSI Printer manual Select Graphics Mode