number that can be sent in one byte (259, the formula to work out nl and n2 is:

if the number of columns is X,

then nl = X MOD 256, and n2 = INT(X/256)

Table 7-l may make the calculation easier.

Table 7-I

Calculating nl and n2

1If the nrlmber of columns, x, ranges from:

1 to 255

256 to 511

512 to 767

768 to 1023

1024 to 1279

1280 to 1535

1536 to 1791

1792 to 2047

2048 to 2303

2304 to 2559

2560 to 2815

2816 to 3071

3072 to 3264

Then

nl is:

and n2 is:

X

 

0

x-256

1

x-512

2

x-768

3

x-1024

4

x-1280

5

x-l

536

6

x-1792

7

x-2048

8

x-2304

9

x-2560

10

x-2816

11

x-3072

12

ml, m2 and so on are specified as before, that is, any desired combination of pins will be fired by just one number. Because the top eight pins are used in the dot graphics mode, numbers between 0 and 255 (in other words, one byte) will fire a unique combination of pins to produce any pattern of dots. Thus ml, m2 and so on are the data .bytes of the command.

To plot large graphics, use graph paper and draw a line every eight rows. Draw your graphic shape, and then calculate the values of each vertical column of eight dots; each value becomes one data byte. When drawing large shapes, the data byte CHR$(255) (all pins firing, or a solid block of dots) is common.

A line spacing of 8/72 inch (using the < ESC > “A”CHR$(n), where n = S), will ensure that successive rows of dots will join perfectly.

Page 124
Image 124
Star Micronics NR-10, NR-15 user manual Then Nl is