Line 40 completes the loop.
Line
50
doesn’t print anything-it just forces a carriage return at the
end of the print line, overriding the semicolon of line 30. Forcing the
carriage return is not really necessary since the line is the last one of
this program. It’s just a good habit to develop.
Notice that the printer doesn’t print each time it receives a CHR$(l).
The FX stores data in its print buffer until it receives as many numbers
as it expects-in this case, 100.
Slash
Using the form 2^X, you can fire individual pins by letting X vary
between 0 and
7 (0
and 6 for 7-bit systems). Here’s how it
works. To exercise the pins in a pattern (a slash) that shows off their
placement, enter:
NEW
40
LPRINT CHR$(27)"K"CHR$(7)CHR$(0);
80 FOR X=0 TO
6
110 LPRINT CHR$(2^X);
120 NEXT X
When X equals 0,2^X is 1-so the bottom graphics pin is fired. When
X equals 1,2^X is 2--so the second pin is fired. This pattern continues
right up through X equals 6, which fires the seventh pin. We purposely
omit X equals 7 to accommodate systems that are limited to 7 bits.
Large caret
The next step is to change the direction of the slash. Can you guess
how it’s done? Sure, just reverse the order of the exponents, and the
same routine can be used. In fact, let’s turn it into a subroutine:
10 F=0
40
LPRINT CHR$(27)"K"CHR$(14)CHR$(@);
50
GOSUB 80: F=l: GOSUB 80
70 LPRINT CHR$(27)"@": END
80 FOR X=0 TO
6
90
N=X: IF F=l THEN N=6-X
139
Summary of Contents for FX-80
Page 1: ......
Page 22: ......
Page 23: ......
Page 26: ......
Page 31: ...Figure 1 1 The FX 80 and FX 100 printers 14 ...
Page 32: ...Figure 1 2 Printer parts 1 5 ...
Page 38: ...Figure 1 8 DIP switch vent 21 ...
Page 42: ...Figure 1 11 Ribbon insertion 25 ...
Page 51: ...Figure 1 20 Paper thickness adjustment 34 ...
Page 85: ......
Page 92: ......
Page 95: ......
Page 97: ...80 ...
Page 109: ......
Page 117: ...Figure 7 3 Staggering STAIR STEPS 100 ...
Page 119: ...Table 7 1 Line spacing commands 102 ...
Page 129: ...112 ...
Page 147: ...130 ...
Page 181: ...Figure 12 4 Corner of the FX 80 design ...
Page 189: ...Figure 12 10 Most distinct version Figure 12 11 Reversed version 172 ...
Page 215: ...198 ...
Page 231: ...214 ...
Page 249: ......
Page 269: ......
Page 272: ...iv ...
Page 283: ......
Page 290: ......
Page 305: ...282 ...
Page 311: ...288 ...
Page 323: ...300 ...
Page 339: ......
Page 343: ...320 ...
Page 349: ...326 ...
Page 353: ...330 ...
Page 354: ...Schematic 331 ...