Manuel d'utilisation / d'entretien du produit SB-15 du fabricant Star Micronics
Aller à la page of 128
SD-IO/l5 USER’S MANUAL f NOT INTENDED FOR SALE.
Federal Communications Commission Radio Frequency Interference Statement The equipment generates and uses radio frequency energy and if not installed and used properly, that is, in strict accordance with the manufacturer’s instructions. may cause in- terference.
A Special Message to the New Owner c. Congratulations on your selecting the printer of choice for both the sophisticated as well as the first-time user/owner - the new SD-IO/IS! b- To complement the SD-lo/l 5, we’ve included this manual. All the information you need to be up and running with your b.
Chapter 1 Chapter 2 Chapter 3 Chapter 4 Chapter 5 Table of Contents Setting Up SD-lo/15 Where Shall We Put It? What Have We Here? Removing the printer cover Removing packing and shipping screws Instal.
Italic printing Underlining Superscripts and subscripts Changing the Print Pitch Expanded print Making SD-lo/l5 Print Darker Summary Chapter 6 Chapter 7 Line Spacing and Forms Control 49 Starting New .
Chapter 10 Chapter 11 Appendix A Appendix B Appendix C Appendix D Appendix E Command Summary in Numeric Order 199 Appendix F ASCII Code Conversion Chart 203 Erasing Download Character Definitions Defi.
I . Appendix G Technical Specifications Appendix H The Parallel Interface Functions of the Connector Signals Appendix I Serial Interface Specifications Configuring the Serial Interface SD- lo/ 15’s .
- Table of Tables Table 5-l Near letter quality commands Table 5-2 Italic commands Table 5-3 Underline commands Table 5-4 Superscript and subscript commands Table 5-5 Print pitch commands Table 5-6 Ex.
In this chapter, we’ll show you how to unpack your new SD-lo/l 5 printer, set it up in the right location, and get it ready for you to load it with paper and start printing. But first . . . WHERE SHALL WE PUT IT? Before you do anything else, give some thought to where you’ll be using your printer.
. . . . . . “- .A,.? Figure l-l. Inside the carton you should have received: I) SD1uj13 printer, 2) continuous paper guide, 3) platen knob, 4) spare fuse, 5) ribbon cartridge, and 6) this user’s manual.
To remove the printer cover, lift up the free end (nearest the center of the printer), then with a slight rocking motion, lift it straight up and off the machine. To replace, just reverse the procedure. Figure l-2 illustrates the proper position and movement for both removal and replacement of the cover.
_ . . Figure 1-3. SD-10 has two screws which secure the chassis during shippmg; SD-15 has three. They should be removed before use. - - - - .~ - Figure 1-4.
You’ll be smart to save these screws, along with the rest of the packing material and the shipping carton, in case you ever have to ship the printer. Tape the screws somewhere on the carton or packing. n Installing the platen knob This is the knob that turns the rubber platen cylinder.
- Remove the printer cover (if attached). Identify the “snap levers” as shown in Figure l-5. Pull both snap levers forward, and at the same time . . . Rock the tractor unit up and towards you about half an inch. Now lift the tractor up and away from the printer.
Important news: If you get this in upside down, they won’t work. So take another sharp look at Figure 1-6 before we pass on to the final act-installing the ink ribbon cartridge. n Installing the ribbon cartridge The ribbon cartridge greatly simplifies installing the ink ribbon.
Figure 1-8. Use a ball point pen to place the ribbon between the print head and the ribbon guide. It’s important that the ribbon is centered vertically between the print head and the ribbon guide. of the print head to avoid misprints or the ribbon coming off during printing.
CHAPTER 2 GETTING TO KNOW YOUR SD-lo/l5 The more you learn about SD-lo/15 and its sophisticated features, old and new, the better SD- lo/15 is going to perform for you.
Control panel Power switch L Figure 2-l. Front and rear views of SD-IO. TRACTOR - This unit feeds sprocket-feed paper with its drive gear and sprocket units. It is very easy to remove or to install the tractor unit onto the printer. PLATEN - This is the rubber cylinder that carries paper to the print head.
. L. .. * L L “. knob ?Zontrol panel Figure 2-2. Front and rear views of SD-15 INTERFACE CONNECTOR - Around on the back, this is the place where you connect your computer to SD- 1 O/l 5, so that they are able to communicate with each other.
I POWER r---l I READY I PAPER I OUT I I ON LINE FF G LF G Figure 2-3. SD- lo/ 15’s controls. POWER LAMP - Glows green when the power is on. READY LAMP - Glows green when the printer is ready to ac- cept data. This light flickers during transmission.
. . . RELEASE LEVER - On top, near the left rear corner. You’ll be using this particular control often. What it does is control the pressure of the paper against the platen. Its position is crucial to feeding the different paper types - sprocket and single sheets.
Figure 2-4. The paper release lever has two settings: “F” for friction feed and “T” for tractor feed. for “Tractor Feed” and is used only with sprocket-feed paper. “F” tightens the pressure of the paper against the platen, while “T” loosens this pressure, so it’s easier to move the paper around.
5. Insert the sheet from the back side of the platen (between the paper chute and the platen cover plate). 6. Press the ON LINE button until the ON LINE light goes off. 7. Press the L.F. button to roll the paper in until it appears on the front side of the platen, about where you want the first line to start printing.
“computer paper.” It can be as narrow as 3”, and up to 10” wide (5” to 15 $4” on SD-I 5,. To use this kind of paper, you’ll need to install the tractor unit, with its two “sprocket” wheels to carry the paper along. To install the tractor, identify the two “snap levers” shown in Figure 2-6.
3. Raise the paper bail bar; lift the paper separator upright. 4. Place the stack of fan-fold paper behind the printer. 5. Open the tractor covers, atop the right and left sprocket units, as shown in Figure 2-7. Figure 2-7. Open the tractor covers to expose the sprocket teeth.
-- - - Figure 2-8. SD-lo/l5 ready to run with sprocket-teed paper. n Bottom feeding SD- 15 The SD- 15 can be loaded with sprocket paper in two different ways-either from the back, as with SD-10,or through a slot in - the bottom. To load SD- 15 from the back, follow the steps shown in the previous section.
5. Open the tractor covers, right and left (Figure 2-7). 6. Flip the clamp levers forward. This allows the two sprocket units to move freely right and left, so you can align them with the holes in the paper. 7. Pick up the first “sheet” and lift it up and through the slot in the bottom of the SD-15.
c ‘. - RIBBON INSTALLATION This is described in two places: installation of the ribbon car- tridge is explained in Chapter 1; replacing the ink ribbon inside the ribbon cartridge casing is described in Chapter 11 (“Maintenance”). .- ADJUSTING THE GAP The gap is the space between the print head and the platen.
SELF-TEST The “self-test” is a trial run of your beautiful new machine. SD-lo/l 5 carries a built-in program that prints out sample lines of letters, numbers, and other characters - to show you that everything’s in good working order. It also serves as a display of the characters available in the SD-lo/l 5.
- - -.
CHAPTER 3 GETTING STARTED WITH SD-lo/l5 You have assembled and tested your printer, and seen a quick sample of SD-10/15’s capabilities in the self-test. Now it’s time to do what you bought SD-lo/l5 to do: print information from your computer. But first you need to connect SD-lo/l5 to your computer.
USING COMMERCIAL SOFTWARE Many of you purchased SD-lo/15 to use with commercial software. You made a good choice because SD- lo/ 15 is com- patible with most commercial programs, from word processing programs to spreadsheet programs to accounting programs.
ask-key ). There are ASCII codes for all the letters of the alphabet, both lower case and capital, the numbers from 0 to 9, most punctuation marks, and some (but not all) of SD-10/15’s func- tions. ASCII codes are referred to in several different ways, depending on the way they are used.
<LF> - the abbreviation of its name ASCII 10 - its decimal value ASCII OAH - its hexadecimal value (the H signifies hex) CHR$(lO) - the way it’s used in BASIC control-J - the way you send it from a keyboard. -- There’s a chart in Appendix F that shows these side-by-side so that you can convert back and forth.
I ,: . . that we want to use condensed print. The code to switch SD-lo/15 into condensed print is ASCII 15, or control-O. So to switch on condensed type, use the /Output command and, after selecting D(isplay) and entering the range to print, select the S(etup) option, and the S(etup)--“Manual setup codes” sub option.
Entering the 4 is no problem; it’s a printing character so Easy- Writer won’t object (although in this case it’s not going to print). The Escape, however, is a non-printing character so it requires special handling. To enter the Escape code lirst enter control-O (hold the Ctrl key while you press the letter 0).
CHAPTER 4 CONTROLLING SD- 1 O/ 15 WITH BASIC Throughout the rest of this book we will be teaching you how to use SD- 10/l 5 ‘s features using the BASIC programming lan- guage in our examples.
ways, and hope that between this and your computer’s BASIC manual you will be able to stay with us. First on our list is Microsoft BASIC’s way of communicating with the printer. They just add an “L” to the beginning of the LIST and PRINT commands, making them LLIST and LPRINT.
LLIST it (or however your computer does it). We’ve crossed the first major hurdle-learning how to list programs on SD- 10/15. Now we are ready to jump into the world of programming with SD-lo/l 5. But first, there are a few fundamentals that we need to cover.
n Control codes SD-lo/l 5 uses many of the non-printing ASCII codes for control codes. These codes perform a function rather than printing a character. Let’s try an easy one right now: NEW 10 LPRINT CHR$(7) RUN Where did that noise come from? That’s SD-lo/l 5’s bell.
Some of you fast students may have noticed that CHR$(69) is the same as “E”. That’s right, the program will work just as well if line 10 is changed like this: 10 LPRINT CHR$(27) "E"; That’s just another form of the same ASCII code, and it’s all the same to SD-10/15.
This is the command to turn on expanded print < ESC > , as we mentioned earlier, is the way we will indicate the escape code, which is ASCII code 27. A letter or number enclosed in quote marks (such as the “W” above) means that character should be sent to the printer (without the quote marks).
in STAR mode. There are some cases where you would use IBM mode with your computer, if you wish. Chapters 5 through 10 discuss the control codes you send to SD-lo/l 5 to control printing style, horizontal and vertical for- matting, graphics, and other features.
” ‘..
CHAPTER 5 PRINTING TEXT WITH SD-lo/l5 Beginning with this chapter we will be exploring all the features of SD-10/15. In this chapter we’ll cover: l Near letter quality characters l Italics l Underli.
l(d 'Demo near letter quality character set. 20 LPRINT CHR$(27) "B" CHR$i4) ; 'Select NLQ. 34) LPRINT "This line shows NEAR LETTER QUALITY!" 44) LPRINT CHR$(27) "B" CHR$(5) ; 'Select draft. 50 LPRINT "This line shows standard Drint.
!I I. ’ i ,. ., L... 10 'Demo italic and roman. 20 LPRINT CHR$(27) "4" ; 'Italic on. 30 LPRINT "This line is in ITALIC characters." 40 LPRINT CHRS(27) "5" ; 'Italic off. 50 LPRINT "This line is in ROMAN (normal) characters.
ued.Therefore, BASIC didn’t send a carriage return and line feed at the end of those lines. We just did this to illustrate that all these control codes can be used in the middle of a line. It’s easy to underline or italicize only part of a line. n Superscripts and subscripts SD-lo/l 5 can print in two different heights of characters.
“S” CHR$( l), and finally off in line 90. Again, everything prints on one line because of the semicolons. CHANGING THE PRINT PITCH In “printer talk,” character width is called pitch. Normally, SD-lo/l 5 prints 10 characters per inch. This is called pica pitch because it’s the same spacing as a standard pica typewriter.
When you run this program you should get this: 30 LPRINT "This line is CONDENSED pitch." 4@ LPRINT CHR$(27) "B" CHR$(2) ; 'Select elite pitch. 541 LPRINT "This line is ELITE pitch." 60 LPRINT CHR$(27) "p" CHR$(l) ; 'Select proportional.
Expanded print set with CHR$(14) is automatically canceled at the end of the line. This is convenient in many applications, such as for one line titles. Note that you don’t need to put an < ESC > in front of the CHR$( 14), although < ESC > CHR$( 14) works just the same.
By combining expanded print with the four pitches, SD-lo/l 5 has eight different character widths available. Enter this program to see how the print pitches and expanded print can be combined: 191 'Demo pitches in cqmbination with expanded mode. 20 LPRINT CHR$(27) "W" CHR$(l) ; 'Permanent expanded mode on.
MAKING SD-IO/15 PRINT DARKER SD-lo/l 5 has very good print density when it’s just printing regularly. But sometimes you may want something to stand out from the rest of the page. SD- lo/15 provides two ways to do this: double-strike and emphasized print.
Line 20 turns on double-strike with < ESC > “G” and line 30 prints a line of text. In line 40 emphasized is turned on with < ESC > “E”. Line 50 prints a line of text in double-strike and emphasized. Line 60 then turns double-strike off with < ESC > “H” so that line 70 can print in emphasized only.
CHR$(20) <ESC> “W” 1 < ESC > “W” 0 < ESC > “G” < ESC > “H” < ESC > “E” < ESC > “F” One line expanded off Expanded on Expanded off Double-str.
- - -.
CHAPTER 6 LINE SPACING AND FORMS CONTROL We have learned how to print in many different ways, but so far we haven’t looked at how to position the printing on the page.
. . will add the line feed for you. When you have DIP switch 2-3 off the printer will do the same thing when it receives a carriage return as it does when it receives a line feed. If you find that your printer double spaces when it should single space, then you probably need to turn DIP switch 2-3 on.
This is what you will get: This line s-pacing is cet to 11 This line spacing is set to 12 This line c.pacirig i 5. set to 14 This line spacing is set to 15 This line spacing is set to 10 This line spacing is set to 17 Thir 1 ine spacing is set to 18 This 1 lne %z.
You may wonder why they picked l/72 of an inch as the in- crement for the line spacing command. There’s a good reason: the dots that the printer makes are l/72 inch apart.
The program works just the same as before, but the line spacing are just half (STAR mode) or one-third (IBM mode) what they were. This is because < ESC > “3” CHR$(n) sets the line spacing to n/144 inch in the STAR mode, or n/216 inch in the IBM mode.
without moving the printhead back to the left margin. The fol- lowing commands do just that. The < ESC > “J” CHR$(n) command causes the printer to make one line feed of n/144 inch (STAR mode), or n/216 inch (IBM mode), but does not change the setting of the line spacing.
The new line 50 moves the paper up 3 lines, but the printhead doesn’t move. Therefore, line 60 prints its message starting in the column that the printhead was left in at the end of line 30. FORMS CONTROLS We have seen how to control the spacing between lines on a page.
I .- ! : .- The form feed (CHR$( 12)) in line 50 caused the printer to move to the top of a new page before printing the last two lines. A note to TRS-80 users: CHR$(12) is a problem code for the TRS-80. To send a form feed command to SD-lo/l 5 you must add 128 to it making it CHR$(140).
TOP AND BOTTOM MARGI NS Many programs that use a printe :r don’t keep track of where they are printing on the page. This causes a problem when you get to the bottom of a page because these programs just keep on printing, right over the perforation. This makes it very hard to read, especially if a line happens to fall right on the perforation.
When you run this program it will print 150 lines right down the page and across the perforations. When it’s done line 60 sends a form feed to advance the paper to the top of the next page. Look at the lines that have printed near the perforations. Separate the sheets and see if any of the lines have been torn in half.
Always send a form feed after setting the top margin, or it will not work on the first page printed. That’s because the top margin only takes effect after a form feed. Line 14 sets the top margin, line 12 sets the bottom margin, and line 55 clears both margins when we are done.
- - -.
L. :I*. - c CHAPTER 7 FORMATTING YOUR OUTPUT You have probably used the tab and margm features on a typewriter. They make it easier to format the text on a page.
CHR$(9) is a problem with some computers. Some BASICS convert CHR$(9) to a group of spaces that act like a sort of pseudo-tab. This is line if the computer and the printer have the same tab settings, but it doesn’t allow us to use our own tab settings on SD-lOjl5.
Table 7-1 Horizontal tab commands Function Mode Control code Advance to next tab position STAR CHR$(9) IBM CHRS(9) Set tabs at nl, n2, etc. STAR < ESC > “D” CHR$(nl) CHR$(n2).
110 RETURN The first thing that this program does is to branch to the subroutine that starts in line 70. This subroutine prints 80 X’s in a row. The first time that the subroutine is used, all the X’s fit in one line. Then line 30 sets the left margin to 10, and line 40 sets the right margin to 70.
Now, let’s set some vertical tabs of our own. Add these lines to the program: 12 LPRINT CHR$(27) "P" CHR$(l@) ; 14 LPRINT CHR$(2@) CHR$(4@) CHR$(5Q)) CHR$(@) ; < ESC > “P” is the command to set vertical tabs for the STAR mode. Like the horizontal tab setting command, tab positions must be defined in ascending order.
This doesn’t confuse SD- 10/l 5---it advances the paper to the next tab position which happens to be the first tab position on the next page. That’s nice, isn’t it? n A one-shot vertical tab command There’s a one-time vertical tab command that works just like the one-time horizontal tab command.
I :? ! CHAPTER 8 SPECIAL FEATURES OF THE SD-lo/l5 In the previous chapters we have learned about several groups of control codes. In this chapter we will look at more control codes. These codes don’t fit neatly into any of the groupings that we have studied, but they add a lot of capability to SD-lOjl5.
* to remind an operator to change the paper or to make another adjustment to the printer. Note to Apple users: Entering a CHR$(7) will sound Apple’s bell; the code will not be sent to SD-10/15. You can try this by typing: LPRINT CHR$(7); There are two other codes that affect the bell.
1 for the code to go on-line again. CHR$(l9) is the code to turn SD- 10/l 5 off-line; CHR$( 17) returns SD- 10/l 5 to on-line status. n Printing to the bottom of the sheet Sometimes when you are using individual sheets of paper you may want to print near the bottom of a sheet.
n Backspace, delete, and cancel text Backspace (CHR$(8)) “backs up” the printhead so that you can print two characters right on top of each other. Each time SD-lo/l5 receives a backspace it moves the printhead one character to the left, instead of to the right.
. . . . . ii ., L. I n Unidirectional printing Unidirectional printing is a big word that means printing in one direction on@. SD-IO/l5 normally prints when the printhead is moving in both directions. But once in a while you may have an application where you are more concerned about how the vertical lines align than with how fast it prints.
I again. Finally line 110 sends a form feed to advance the paper to the top of a new page, and then uses the master reset to restore SD-10/l 5 to the power-on condition. You can also set SD-lo/l 5 to print in one direction for one line only by using the command < ESC > “ < “.
m Block graphics characters and special symbols Besides the upper and lower case letters and symbols that we are by now familiar with, SD-lo/l 5 has a whole different set of characters that are for special uses.
Figure 8-1. 6 4 131 8 141 i 151 I:( 161 i 171 !i 131 1 191 , 20 1 r 211 L 221 I 231 q- 241 i: 251 d - - Figure 8-2. 74.
. 144 & 154 ii 164 i; 1 7 4 .::::' 134 7 194 -,- 2 (:,Aq. t 214 f 224 ,x 75.
NEW 10 LPRINT CHR$(27) "0" 20 LPRINT CHR$(27) "6" 30 FOR J = 3 TO 6 40 LPRINT " " J CHR$(J) " 'I; 50 NEXT 60 LPRINT " 21 " CHR$(21) 70 LPRINT 80 FOR J.
SD-10/l 5 is a multi-lingual printer for it can speak in eight languages! SD- 10/l 5 changes languages by changing 11 char- acters that are different for the different languages. These sets of characters are called international character sets. The control codes to select the international character sets are given in Table 8-5.
Function Define macro use macro Table 8-7 Macro instruction commands Mode Control code STAR < ESC > “ + “....codes you include...CHR$(30) IBM < ESC > “+“....codes you include...CHR$(30) STAR < ESC > “!” IBM <ESC> “r.
In this chapter we have learned many different commands that have many different uses. In the next chapter we will make up for this diversity-the whole chapter only covers three commands! But they are some of the most powerful that SD-lo/15 offers. They give you the ability to create your own characters.
- - -.
CHAPTER 9 ’ CREATING YOUR OWN CHARACTERS L In this chapter we’ll cover: l Designing and printing your own characters .- .- l Designing proportional characters In the previous four chapters of this manual you’ve learned how to control the SD-lo/l 5 printer to give you dozens of dif- ferent typefaces.
Figure 9-l. The letter “C” is created by printing 15 dots. descenders (such as the lower case “p” shown) use the bottom seven pins. As the printhead moves across the page (in either direction-that’s what is meant by bi-directional printing) it prints one column of dots at a time.
But there is another area of *memory in the SD- lo/ 15 reserved for user-defined characters. These are characters that you design and download into SD-10/15. When download characters are defined they are stored in RAM (random access memory), which allows you to define or modify them at any time.
Figure 9-5. Later in this chapter we’ll use this character to create a small graph.) You’ll notice that Figure 9-4 includes a lot of information around the grid. Don’t be intimidated; we’ll explain each item as we come to it in our discussion of defining and actually printing download characters.
character uses the top eight dots, write in a one next to the word “Descender” on the layout grid; if it uses the bottom eight dots, write in a zero. In our example, we’ll want the bottom of the flask to line up with the baseline of the other characters, so it will not be a descender.
64 32 16 Total m m2 m, m m5 m6 m, m, m, m,, m,, ASCII Code WRONG! Descender M, = Descender * 126 + (Start l 16) + End Figure 9-6. Dots cannot overlap; those in immediately adjacent “half columns” will be ignored when the character is printed.
value. Some examples will make this clearer. As shown in Figure 9-7, if we add the numbers for the dots that print in a column, the sum will be a number in the range of 0 to 255. Each number from O-255 represents a unique combination of dots. So add up the values of the dots in each column using this system.
can define any positions except the defined control code positions. This means that once a character is defined and assigned a value (and the download character set is selected), you can use that character on the printer the same way you would any standard character.
Our chart would hardly be complete with just a picture of a chemist’s flask, so in Figure 9-9 we’ve made completed grids for some other symbols: an automobile and a gun (quite a strange mix of characters!). The information on the grids is now complete (except for proportional width data-a more advanced topic we’ll take up shortly).
We’ll be discussing proportional character widths in detail later in this chapter; for now, we’ll leave it at 11. The descender data was discussed earlier: to use the top eight pins, this bit should be 1; to use the bottom eight pins this bit should be 0.
10 LPRINT CHR$ (27) “k” CHR$( 1) CHRS(160) CHR$(162); 20 FOR N = 160 TO 162 30 FOR M = 0 TO 11 44) READ MM 50 LPRINT CHR$(MM); 60 NEXT M 70 NEXT N 80 LPRINT 90 DATA 139,2,5,8,241,0,0,241,8,5,2,0 100 DATA 139,124,0,66,4,64,36,16,2,16,12,0 110 DATA 139,46,16,2,60,0,48,0,48,0,48,0 When you run this program, it looks like nothing happens.
Voila! It should have printed out the three characters we de- fined. Your printout should look like this: (If it doesn’t, check the last program we ran for errors, then rerun it.) Let’s find out if there are any other characters in the download RAM.
I . . 144) LPRINT ESC$ "$1"; 150 LPRINT "Autos" TB$; 160 FOR I=.4 TO 9.3 STEP .4 : LPRINT CHR$(161); : NEXT 179) LPRINT 184) LPRINT "Chemicals" TB$; 190 FOR I=.4 TO 8.7 STEP .4 : LPRINT CHR$(16@); : NEXT 200 LPRINT # 210 LPRINT "Guns" TB$; 2241 FOR I=.
ERASING DOWNLOAD CHARACTER DEFINITIONS After you have defined a set of characters (a whole new al- phabet, perhaps) you may want to go back to using mostly standard characters with a few new user-defined characters mixed in.
Figure 9-12. These download characters are defined as proportional characters. attribute byte, mO. As you know, the first bit of m0 is used to specify whether the character is a descender or not. The next three bits are used to specify the starting print column (acceptable values are 0 to 7).
10 FOR N=l TO 4 2p) READ Nl 30 LPRINT CHR$(27) "9c" CHR$(l) CHR$(Nl) CHR$(Nl); 40 FOR M=Q) TO 11 50 READ MY 60 LPRINT CHR$(MM); 70 NEXT M 80 NEXT N 90 LPRINT " Mississippi" 100 LPR.
One thing to remember about defining proportional characters: a character cannot be wider than the specified width. That seems obvious enough! For example, if you specify a width of 6 for a character (starting in column 1 and ending in column 6), the seventh through eleventh columns of dots (if you specified any) will not print.
In the program that follows, we’ve used this technique to create some large numbers. Each digit is actually made up of four characters-two horizontally by two vertically. This means, of course, that you must define and print four characters for each finished digit.
130 READ MS 140 PRINT 111, CHR$(MS); 150 NEXT S 160 NEXT I 170 ' 180 ASCII = 160 'START OF DOWNLOAD CHARACTERS 190 FOR NUM = 0 TO 9 'NUMERALS 0 TO 9 200 NUMERAL.
500 DATA 11, 0, 0, 0, 0, 0, 0, 32, 64, 32, 64, 32 510 DATA 11, 68, 42, 68, 58, 68, 50, 68, 34, 64, 2, 0 520 DATA 11, 8, 0, 12, 0, 28, 2, 12, 2, 4, 2, 4 530 DATA 11, 2, 4, 2, 12, 144, 108, 144, 104, 14.
L 810 DATA 11, 192, 0, 192, 0, 194, 32, 222, 32, 94, 32, 3# 820 DATA 11, 12, 0, 28, 0, 142, 0, 198, 0, 198, 0, 198 830 DATA 11, 0, 206, 0, 156, 0, 248, 0, 240, 0, 224, 0 840 ‘SPACE 850 DATA 11, 0, 0, 0, 0, 0, 8, 8, 8, 8, 8, 0 . SUMMARY Control code Function <ESC> “*” 1 nl n2 m0 ml .
- - -.
CHAPTER 10 PRINTING WITH DOT GRAPHICS Subjects covered in this chapter include: l SD-10/15’s bit image graphics capabilities l Printing a pre-defined shape l Plotting a calculated shape l High resolution graphics In Chapter 9 you were introduced to a form of computer graphics; you were able to actually define characters dot by dot.
(if you’re not sure which type of interface your computer has, check the appendix for your computer). So when do you use graphics and when do you use download characters? Practically anything you can do with graphics you can do with download characters, and vice versa.
it’s possible to have a graphics image as wide as 480 dots on SD-10 or 816 dots on SD-15. So to figure out how many columns of graphics data to expect, SD-lo/l5 multiplies n2 by 256 and adds the value of nl.
-. -- - Figure 10-l. Starting with the most significant bit at the top, each pin of the print head is assigned a value which is a power of two. Note that for 7-bit computers, the top pin cannot be used. - - A short program should demonstrate how to implement the graphics command.
W Combining text and graphics It’s also possible to mix text and graphics in one line. This can be useful for labeling charts or graphs, or even inserting fancy graphics in text.
paper. And it may be helpful to write the dot values (128, 64, 32, etc.) down the left side of each row. Then after you’ve filled in the “dots” that you want to print, it’s time to get out the old calculator again! Just as you did with download characters, add up the values of each column of dots; this makes up one byte.
60 GRAPHICS = CHR$(27)+CHR$(75) 70 DIM LOG0$(4) 80 WIDTH "LPT1:",255 90 ' READ DATA 100 FOR ROW = 1 TO 4 110 FOR COLUMN = 1 TO 100 120 READ P 130 LOGO$(ROW) = LOGO$(ROW) + CHR$(P) 140 NEXT COLUMN 150 NEXT ROW 160 ' PRINT LOGO 1?0 LPRINT LINE.
500 DATA 252,255,255,255,127,63,31,7,7,31 510 DATA 254,252,248,224,128,0,0,3,7,7 520 DATA 7,3,0,0,0,0,0,0,0,0 530 DATA 0,31,31,3,129,128,192,192,192,192 540 DATA 192,224,224,224,224,240,255,255,255,25.
and SD-lo/l5 plotting the output, you can come up with some terrific business graphs, charts, and mathematical function plots. L-. L., ‘- The best way to do this is to set up an array in memory. This is your “graph paper.” The first thing to do is to determine how big you want your output to be; this will determine the size of your array.
270 ' 280 'Subroutine to draw a line from Xl,Yl to X2,Y2. 290 ’ 300 XL = X2 - Xl : YL = Y2 - Yl 310 Nx = ABS(XL"LXFAC) : NY = ABS(YL$cLYFAC) 320 IF NX < NY THEN NX = NY 330 NS% = I.
you need to change are the values in line 40. The array MASK% contains the values of the dots. (In order to make this program run on the most computers, we’re using only six pins for graphics. With many computers, you can use all eight available pins.
at a time. The variable A$ is used to build a string of all the columns of BIT% in a given row. As you can see, by taking the program in small pieces and analyzing it, graphics programming does not have to be difficult. If you want to try some other plots, try these (replace lines after 600 with the lines below).
* I * . . . * I. ‘ .----I 1 f 5 5 r’ I: :. i . ..__.. i’ HIGH RESOLUTION GRAPHICS Up until now all of the dot graphics printing we have done has been with SD-IO/IS’s normal density mode. This can give you some pretty sharp images at great speed.
Table 10-2 nnt oranhirr rnmmlndQ YY. b’..Y”‘V” ~VLII~IIII-..” Function Mode Control code Normal density (60 dots/inch) STAR < ESC > “K” nl n2 ml m2 . . . . . or < ESC > “g” CHR$(O) nl n2 ml m2 . . . . . IBM < ESC > “K” nl n2 ml m2 .
Quadruple density graphics . . --. -‘;.. 117 : : 1.’ , Double density graphics Double density,‘double speed.
So if quadruple density looks so great, why not use it all the time? Let’s try an experiment on your printer which will show just how the different density modes work. Using the “logo” program in this chapter, change line 60 to try each of the different modes.
-. Star’s engineers have given programmers a unique shortcut for program development though-double density double speed graphics. Although this mode requires just as much memory and computing time as double density, it prints at the same speed as normal density graphics.
< ESC > “Z” nl n2 ml m2... Print quadruple density graphics (for IBM mode) c ESC > “g” nO nl n2 ml m2... Master graphics selection (for STAR mode) < ESC > ‘I*” nO nl n2 ml mi?.
Un point important après l'achat de l'appareil (ou même avant l'achat) est de lire le manuel d'utilisation. Nous devons le faire pour quelques raisons simples:
Si vous n'avez pas encore acheté Star Micronics SB-15 c'est un bon moment pour vous familiariser avec les données de base sur le produit. Consulter d'abord les pages initiales du manuel d'utilisation, que vous trouverez ci-dessus. Vous devriez y trouver les données techniques les plus importants du Star Micronics SB-15 - de cette manière, vous pouvez vérifier si l'équipement répond à vos besoins. Explorant les pages suivantes du manuel d'utilisation Star Micronics SB-15, vous apprendrez toutes les caractéristiques du produit et des informations sur son fonctionnement. Les informations sur le Star Micronics SB-15 va certainement vous aider à prendre une décision concernant l'achat.
Dans une situation où vous avez déjà le Star Micronics SB-15, mais vous avez pas encore lu le manuel d'utilisation, vous devez le faire pour les raisons décrites ci-dessus,. Vous saurez alors si vous avez correctement utilisé les fonctions disponibles, et si vous avez commis des erreurs qui peuvent réduire la durée de vie du Star Micronics SB-15.
Cependant, l'un des rôles les plus importants pour l'utilisateur joués par les manuels d'utilisateur est d'aider à résoudre les problèmes concernant le Star Micronics SB-15. Presque toujours, vous y trouverez Troubleshooting, soit les pannes et les défaillances les plus fréquentes de l'apparei Star Micronics SB-15 ainsi que les instructions sur la façon de les résoudre. Même si vous ne parvenez pas à résoudre le problème, le manuel d‘utilisation va vous montrer le chemin d'une nouvelle procédure – le contact avec le centre de service à la clientèle ou le service le plus proche.