SG -1 O/l 5 USER’S MANUAL NOT INTENDED FOR SALE
Figure l-l. Inside the carton you should have received: 1) SG-lo/15 printer, 2) paper separator, 3) paper guide, 4) platen knob, 5) spare
Voila! It should have printed out the three characters we de- fined. Your printout should look like this: (If it doesn’t, check th
149) LPRINT ESC$ "$1"; 150 LPRINT "Autos" TB$; 160 FOR I=.4 TO 9.3 STEP .4 : LPRINT CHR$(lGl); : NEXT 170 LPRINT
ERASING DOWNLOAD CHARACTER DEFINITIONS After you have defined a set of characters (a whole new al- phabet, perhaps) you may want to
616 &4@9 mmmm.mmmm.mm m Figure 9-12. These download characters are defined as proportional characters. attribute byte, m0. As you kn
10 FOR N=l TO 4 24) READ Nl 34) LPRINT CHR$(27) "+c" CHR$(l) CHR$(Nl) CHR$(Nl); 40 FOR M=0 TO 11 54) READ MM 60 LPRINT CHR
One thing to remember about defining proportional characters: a character cannot be wider than the specified width. That seems obvious
In the program that follows, we’ve used this technique to create some large numbers. Each digit is actually made up of four charac
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 =
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,
810 DATA 11, 192, 0, 192, 0, 194, 32, 222, 32, 94, 32, 30 820 DATA 11, 12, 0, 28, 0, 142, 0, 198, 0, 198, 0, 198 830 DATA 11, 0, 206, 0, 156, 0, 248,
Figure 1-2. Remove the printer cover by lifting carefully. n Removing packing and shipping screws There are two (on an SG- 10) or th
i b. c. . . I L. c, CHAPTER 10 PRINTING WITH DOT GRAPHICS Subjects covered in this chapter include: l SG-10/15’s bit image graphics capab
(if you’re not sure which type of interface your computer has, check the appendix for your computer). So when do you use graphics
it’s possible to have a graphics image as wide as 480 dots on SG-10 or 816 dots on SG-15. So to figure out how many columns of gra
0 1 U 0 (not used) 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 powe
n Combining text and graphics It’s also possible to mix text and graphics in one line. This can be useful for labeling charts or
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 fill
60 GRAPHICS = CHR$(27)+CHR$(75) 70 DIM LOG0$(4) 80 WIDTH "LPTl:",255 90 ' READ DATA 100 FOR ROW = 1 TO 4 110 FOR COLUMN = 1 TO 100 120
500 DATA 252,255,255,255,127,63,31,7,7,31 510 DATA 254,252,248,224,128,0,@,3,7,7 520 DATA 7,3,0,0,0,0,0,0,0,0 530 DATA Q,31,31,3,129,128,192,192,192,
and SG-IO/15 plotting the output, you can come up with some terrific business graphs, charts, and mathematical function plots. The b
:.” .’ Shipping screw -. _-^-_^_ Figure l-3. SC;-10 has two screws which secure the chassis during shipping; SG-15 has three. They s
270 ' 280 'Subrout 290 ' :ine to draw a line from Xl,Yl tt 0 X2,Y2. 300 XL = X2 - Xl : YL = Y2 - Yl 310 NX = ABS(XL*LXFAC) : NY = ABS(Y
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 ru
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 th
HIGH RESOLUTION GRAPHICS Up until now all of the dot graphics printing we have done has been with SG-10/15’s normal density mode.
Table 10-2 Dot graphics commands - - Note: If your computer CHR$(103), CHR$(121), spectively. does not support lowercase characters, use an
i -1 Double density graphics ( .I . . /...‘I : :. . ..- ., ,, ‘. “. : ..;.“:c..~:. ‘.. .,.. ,,... ..: $8 ‘1.:; ,. . .i ..:.. ,.i” ” .i .
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 jus
Star’s engineers have given programmers a unique shortcut for program development though-double density double speed graphics. Although
< ESC > “Z” nl n2 ml m2... Print quadruple density graphics (for IBM mode) < ESC > “g” n0 nl n2 ml m2... Master graphics s
the knob a few turns to see that it’s turning the platen easily and smoothly. n Removing the tractor unit The tractor unit, shown in
and guide, which are designed expressly to guide continuous paper (sprocket-feed) through the printer. n Attaching the paper separator
several figures shown here; they’ll tell you all you really need to know. Nevertheless, if you feel better following written instruc
-‘-, - _ _. . - - - - - - - Figure 1-8. The eyelet should be between the ribbon spool and the changeover lever. - Prin; head Figure l
CHAPTER 2 GETTING TO KNOW YOUR SG-lo/15 The more you learn about SG-lo/15 and its sophisticated features, old and new, the better SG
Interface connector Ground terminal ‘Power cord Figure 2-l. Front and rear views of SG-10. -. - - - - - - TRACTOR - This unit feeds spr
switch Control lpanel erface connectc Ground terminal Powe; cord Figure 2-2. Front and rear views of SG-15. INTERFACE CONNECTOR - Around
Federal Communications Commission Radio Frequency Interference Statement The equipment generates and uses radio frequency energy and if
I READY I PAPER I OUT I I ON LINE I FF I I LF I Figure 2-3. SG- lo/ 15’s controls. POWER LAMP - Glows green when the power is on. READY
RELEASE LEVER - On top, near the left rear corner. You’ll be using this particular control often. What it does is control the press
Release lever Figure 24. The paper release lever has two settings: “F” for friction feed and “T” for tractor feed. H Loading single sheets Pap
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
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 i
Tractor cover Figure 2-7. Open the tractor covers to expose the sprocket teeth. 4. Place the stack of fan-fold paper behind the pr
L Figure 2-8. SG-lo/15 ready to run with sprocket-feed paper. W Bottom feeding SG-15 The SG- 15 can be loaded with sprocket paper in tw
5. Open the tractor covers, right and left (Figure 2-7). 6. Flip the clamp levers forward. This allows the two sprocket units to
ADJUSTING THE GAP The gap is the space between the print head and the platen. Adjusting the gap is simply adjusting the printer to
(STAR mode; DIP switch 2-2 on) “warm-up” that permits you to check your installation of ribbon and paper, and the adjustment of the
A Special Message to the New Owner Congratulations on your selecting the printer of choice for both the sophisticated as well as th
i ,(. -. - - - -- - - - - - - - -
Figure 3-1. SG-lo/15 has parallel interface as standard. CHAPTER 3 GETTING STARTED WITH SG-lo/15 You have assembled and tested your pr
USING COMMERCIAL SOFTWARE Many of you purchased SG-lo/15 to use with commercial software. You made a good choice because SG- lo/15 i
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 pu
<LF> - the abbreviation of its name ASCII 10 - its decimal value ASCII OAH - its hexadecimal value (the H signifies hex) CHR$
that we want to use condensed print. The code to switch SG-lo/15 into condensed print is ASCII 15, or control-O. So to switch on
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 pri
CHAPTER 4 CONTROLLING SG- 1 O/ 15 WITH BASIC Throughout the rest of this book we will be teaching you how to use SG-lo/15 ‘s features
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 Microso
LLIST it (or however your computer does it). We’ve crossed the first major hurdle-learning how to list programs on SC-10/l% Now we
Table of Contents Chapter 1 Chapter 2 Setting Up SG-lo/15 1 Where Shall We Put It? What Have We Here? Removing the printer cover Removin
n Control codes SG-lo/15 uses many of the non-printing ASCII codes for control codes. These codes perform a function rather than prin
1 1 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 1 1
This is the command to turn on expanded print < ESC > , as we mentioned earlier, is the way we will indicate the escape code,
That’s it for the basics. You are ready to learn how to use the many features of SG-10/15. in STAR mode. There are some cases w
i ,(. -. - - - -- - - - - - - - -
CHAPTER 5 PRINTING TEXT WITH SG-lo/15 Beginning with this chapter we will be exploring all the features of SG-10/15. In this chapter we’ll
10 'Demo near letter quality character set. 20 LPRINT CHR$(27) "B" CHR$(4) ; 'Select NLQ. 34) LPRINT "This line show
. . . - L I l@ 'Demo italic and roman. 20 LPRINT CHR$(27) "4" ; 'Italic on. 39) LPRINT "This line is in ITALIC characte
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 a
“S” CHR$( l), and finally off in line 90. Again, everything prints on one line because of the semicolons. CHANGING THE PRINT PITCH
Underlining Superscripts and subscripts Changing the Print Pitch Expanded print Making SG-lo/15 Print Darker Mixing Modes Summary Chapter 6
.--_ 30 LPRINT "This line is CONDENSED pitch." 48 LPRINT CHR$(27) "B" CHR$(2) ; 'Select elite pitch. 50 LPRINT "
Expanded print set with CHR$(14) is automatically canceled at the end of the line. This is convenient in many applications, such as
By combining expanded print with the four pitches, SG-lo/15 has eight different character widths available. Enter this program to see
Function Double-strike ON Mode Control code STAR <ESC> “G” IBM <ESC> “G” the characters twice, but they use slightly differen
80 turns emphasized off, so that SG-lo/15 is set for normal printing. Look closely at the different lines of printing. In the line
Table 5-8 Master Select and the 256 ASCII Codes Pitch Normal Emphasized Double-strike Double-strike & Emphasized Pica 0, 2, 6% 8, 10,
SUMMARY Control code < ESC > “B” CHR$(4) < ESC > “B” CHR$(S) < ESC > “4” < ESC > “5” < ESC > “4” < ESC &
L. LI . CHAPTER 6 LINE SPACING AND FORMS CONTROL We have learned how to print in many different ways, but so far we haven’t looked a
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 carriag
This is what you will get: This line +aciniJ is set to 10 This line spacing ic, s.et to 11 This line spacing is set to 12 This 1
Chapter 10 Chapter 11 Appendix A Appendix B Appendix C Appendix D Appendix E Command Summary in Numeric Order 197 Appendix F ASCII Code Co
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
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.
without moving the printhead back to the left margin. The fol- lowing commands do just that. The < ESC > “J” CHR$(n) command
:..., ./, ii 3::: _. i ., / / ,,.,!, / j: ,..! t:: : i :: i._.. :i. r-: E i-. i”) i,,!. iyl i-j c+i: ij .L Y The new line 50 moves the
The form feed (CHR$(J2)) in line 50 caused the printer to move to the top of a new page before printing the last two lines. A n
TOP AND BOTTOM MARGINS Many programs that use a printer don’t keep track of where they are printing on the page. This causes a p
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
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 mar
-.. -- -. - -. - - - - - - - -
CHAPTER 7 I FORMATTING YOUR OUTPUT You have probably used the tab and margin features on a typewriter. They make it easier to format
Appendix H Appendix I Appendix J The Parallel Interface Functions of the Connector Signals Serial Interface Specifications Configuring the
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. Th
Table 7-1 Horizontal tab commands 1 Function 1 Mode 1 Control code I Advance to next tab position STAR 1 CHR$(9) IBM I CHRS(9) Set tabs at
110 RETURN The first thing that this program does is to branch to the subroutine that starts in line 70. This subroutine prints 80
Now, let’s set some vertical tabs of our own. Add these lines to the program: 12 LPRINT CHR$(27) "P" CHR$(lfl) ; 14 LPRINT CHR$
I This doesn’t confuse SG- lo/ 15-it advances the paper to the next tab position which happens to be the first tab position on th
CHAPTER 8 SPECIAL FEATURES OF THE SG-lo/15 In the previous chapters we have learned about several groups of control codes. In this c
to remind an operator to change the paper or to make another adjustment to the printer. Note to Apple users: Entering a CHR$(7) w
for the code to go on-line again. CHR$(19) is the code to turn SG- 10/l 5 off-line; CHR$( 17) returns SG- lo/ 15 to on-line status.
- 1 Backspace, delete, and cancel text Backspace (CHR$(8)) “backs up” the printhead so that you can print two characters right on t
H Unidirectional printing Unidirectional printing is a big word that means printing in one direction only. SG- lo/ 15 normally prints
Table of Tables Table 5-l Near letter quality commands Table 5-2 Italic commands Table 5-3 Underline commands Table 5-4 Superscript an
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 res
H Block graphics characters and special symbols Besides the upper and lower case letters and symbols that we are by now familiar w
4 + 129 Ct 139 i: 14? tr 159 f 169 I- 179 1 189 J 199 t 2c39 T 219 ; mI .--,q Li .9 u 239 n 249 - b . ’ A 131 $ 141 i 151 h 161 i 1
134 2. 144 lk i54 ii 164 E 1 7 4 .+: 134 , 194 -/- 2r:,4 t 214 r 224 ,x 234 5-2 244 r 25 4 m 137 6 147 G 157 ?I! 167 I! 177 3 :;::: 1
NEW 18 LPRINT CHR$(27) "@" 20 LPRINT CHR$(27) "6" 30 FOR J = 3 TO 6 4Q LPRINT " " J CHR$(J) " "; 50 NEXT 6
L -. ._- I,._.. L SG-IO/l5 is a multi-lingual printer for it can speak in eight languages! SG- lo/ 15 changes languages by changing 1
Function Define macro Use macro Table 8-7 Macro instruction commands Mode Control code STAR < ESC > “ +“...codes you zhclude...CHR$(30)
In this chapter we have learned many different commands that have many different uses. In the next chapter we will make up for th
CHAPTER 9 CREATING YOUR OWN CHARACTERS In this chapter we’ll cover: l Designing and printing your own characters l Designing proportional ch
CHAPTER 1 SETTING UP SC-lo/l5 In this chapter, we’ll show you how to unpack your new SG-lo/15 printer, set it up in the right loc
Figure 9-1. The letter “C” is created by printing 15 dots. descenders (such as the lower case “p” shown) use the bottom seven pins.
But there is another area of memory in the SG-lo/15 reserved for user-defined characters. These are characters that you design and
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
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 d
64 32 16 btal m, m, m, m. m, m6 m, m, m, m,, m,, ASCII Code WRONG! Descender Start column End column M, = Descender l 128 + (Start l 16) +
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,
can define any positions except the defined control code positions. This means that once a character is defined and assigned a value
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
We’ll be discussing proportional character widths in detail later in this chapter; for now, we’ll leave it at 11. The descender dat
10 LPRINT CHR$(27) "*" CHR$(l) CHR$(160) CHR$(162); 20 FOR N = 160 TO 162 30 FOR M = 0 TO 11 40 READ MM 50 LPRINT CHR$(MM
Komentáře k této Příručce