Figure 6-2. Calculating numbers
for
pin patterns
With this numbering system, any combination of the eight pins
adds up to a decimal number between 0 and 255, and no numbers are
duplicated.
Now that you know the principles of Epson graphics, you’re ready
for two simple exercises, more densities, and then something more
complex as a basis for writing your own programs.
First Graphics Program
Your first graphics exercise could be a program that prints a single
column of dots, but it is difficult to see the pattern in a single column of
dots, so this program prints the same pattern 40 times.
The first line is the code for 40 columns of single-density graphics.
As usual, the example is in BASIC, but you can adapt it to the pro-
gramming language you prefer.
NEW
10 LPRINT CHR$(27)"K"CHR$(40)CHR$(0);
The second line is the data that is printed as pin patterns. Be sure
that you type in the semicolons in both lines:
20 FOR X=1 TO
40:
LPRINT CHR$(74);: NEXT X
That’s it. Run the program to see the result below. Although it is not
as interesting as the examples at the beginning of this chapter, it does
allow you to see exactly how the mode works.
6-5
Summary of Contents for FX-286 - Impact Printer
Page 1: ......
Page 2: ......
Page 35: ......
Page 40: ...2 4 ...
Page 48: ...3 8 ...
Page 56: ...4 8 ...
Page 91: ...6 16 ...
Page 118: ...C 10 ...
Page 133: ...Epson Mode Commands G 5 ...
Page 134: ...G 6 ...
Page 166: ...H 4 ...
Page 173: ...International Character Width Table Roman characters Italic characters I 7 ...
Page 174: ...I 8 ...
Page 180: ...J 6 ...
Page 181: ...IBM Proprinter Mode Commands J 7 ...
Page 182: ...J 8 ...
Page 202: ...J 28 ...
Page 208: ...K 6 ...
Page 216: ......
Page 220: ...IBM Mode See Appendix J for detailed explanations of codes Character Width Pitch ...
Page 221: ...Notes ...
Page 223: ......