Commodore MPS 1000 — Commodore MPS 1000 Dot Matrix Printer User's Manual PDF

128 0 64. 64 128 0 640 16 0 8. 8 32 0 16 0 32 0 80 4. 2Q 1. 40 2. 2 10 not used Q "'"/4f 4 not used Q 1 5 Figure 7- 2. Calculating numbers for pin patterns. '------" With this numbering system any combination of the eight pins adds up to a unique decimal number between 0 and 255. Although you use a decimal number, it is, of course converted to a binary number before it goes to the printer. Now that you know the principles of MPS lOOO's graphics, we'll give you two simple exercises, more densities, and then something more complex as a basis for writing your own programs. First Graphics Program We could give you a program that prints a single column of dots.

But it's difficult to see the pattern of a single column of dots, so your first graphics program prints the same pattern 40 times. The first line is the code for 40 columns of single-density graphics. Our example is in Commodore BASIC, but you can adapt it to the programming language you prefer. After the OPEN file statement ( 10 OPEN 4,4), the next line is the code for 40 columns of single-density graphics. 20 PRINT#4, CHR$(27)"K"CHR$(40)CHR$(0); The following line is the data printed as pin patterns. Be sure you type in the semi-colons in both lines: 30FORX= 1 T040: PRINT#4, CHR$(74);:NEXTX Then close the file with 40 CLOSE 4. That's it. Run the program to see the result.

This allows you to see exactly how the mode works. 85 • ~ 128 128 64 0 • 32 0 16 16 80 40 2. 2 1. 1 ll'7 not used 0 "----"