Star Micronics NB24-10/15 user manual ESC “*” n0 nl n2 ml m2

Models: NB24-10/15

1 133
Download 133 pages 41.98 Kb
Page 129
Image 129
(ESC) “*” n0 nl n2 ml m2 .....

for characters, except that the printed width can range from one to 3264 dots on a 15-inch type printer. Selection of the ap- propriate line spacing will allow rows of dots to link seamlessly, and in this way you may design and print a whole page of data. In the dot graphics mode, you directly address all dot positions on the page if desired. The graphics mode can print as many as 240 dots per inch compared with the standard resolution of 60 dots per inch (DPI).

The command syntax of the dot graphics mode is:

(ESC) “*” n0 nl n2 ml m2 .....

Just like many of the other codes you have learned, the com- mand starts with an escape sequence (( ESC) “*” in this case). This is followed by no, which specifies the print density as shown in Table 7-2. But unlike the other codes there can be any number of graphics data bytes following the command. That’s where nl and n2 come in; they are used to tell the printer how many columns of graphics data to. expect.

Table 7-2

Graphics modes

To figure the value of nl and n2, you need to work out how wide your image will be. Because you are limited to the largest number that can be sent in one byte (255), the formula to work out nl and n2 is:

if the number of columns is X,

then nl =X MOD 256, and nZ=INT(X/256) Table 7-3 may make the calculation easier.

Page 129
Image 129
Star Micronics NB24-10/15 user manual ESC “*” n0 nl n2 ml m2