Star Micronics ND-10/15 user manual 118

Models: ND-10/15

1 128
Download 128 pages 43.01 Kb
Page 124
Image 124

II

118

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

if the number of columns is X,

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

Table 7-l may make the calculation easier.

 

 

Table

7-1

 

 

 

 

Calculating

nl and n2

 

If the number of columns,

Then

nl is:

and n2 is:

x, ranges from:

 

 

 

1 to

255

X

 

0

256

to

511

x-256

1

512

to

767

x-512

2

768

to

1023

x-768

3

1024

to

1279

x-- 1024

4

1280

to

1535

x-1280

5

1536

to

1791

x-l

536

6

1792

to

2047

x-l

792

7

2048

to

2303

x-2048

8

2304

to

2559

x-2304

9

2560

to

2815

x-2560

10

2816

to

3071

x-2816

11

3072

to

3264

x-3072

12

ml, m2 and so on are specitied 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 tire 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 tiring, 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 ND-10/15 user manual 118