columns B-F put a dot in the top and bottom row only (pin numbers 1 and 64). In column G, put dots from top to bottom again. Now add the values of each column: 127 for A, 65 for B, 65 for C, 65 for D, 65 for E, 65 for F, and 127 forG.
When you run Program Listing 2, it prompts you to type in the totals for each column. After you enter the numbers, type in 999 to terminate data entry. Your printer should be on, and it will print the following: a tiny box, the pin firing codes (the column values), and a three-line series of the character in different font sizes (elongated, normal, and condensed).
Notice that all the boxes are connected; to print a series of individual boxes, enter a zero before typing in 999. Keep in mind that the program automatically adds 128 to the pin codes because the printer requires that all character codes be in a range of 128 to 255.
Try experimenting with different drawings or simply enter a series of numbers; for example, entering 10 numbers at intervals of 5 (don't forget to type 999) makes a nice line of graphics. This type of graphic can be used in a subroutine to separate reports, or as a more interesting alternative to asterisks.
Single line graphics are nice, but somewhat limited. Program Listing 3, while operating on the same concept as Program Listing 2, lets you print graphics that are twice as high. When mapping out the larger characters, split the character between two worksheets and calculate column totals for each. After tabulating the totals, run Program Listing 3, which, in turn, prompts you to enter these values.
Remember to enter zeros in the blank columns to guarantee alignment. The drawing in Fig. 1 and the corresponding
Program Listing I. Basic program to create worksheets.
Was this article helpful?