Star Micronics NR-10 Printer User Manual


 
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
1 If the nr
lmber of columns,
x, ranges from:
Then nl is:
and n2 is:
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-1792
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 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.
_..
-
-
-
-
-
-
-