Star Micronics SG-10 Uživatelský manuál

Procházejte online nebo si stáhněte Uživatelský manuál pro Tiskárny štítků Star Micronics SG-10. Star Micronics SG-10 User's Manual Uživatelská příručka

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 128
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků

Shrnutí obsahu

Strany 1 - SG -1 O/l 5

SG -1 O/l 5 USER’S MANUAL NOT INTENDED FOR SALE

Strany 2

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

Strany 3 - A Special Message

Voila! It should have printed out the three characters we de- fined. Your printout should look like this: (If it doesn’t, check th

Strany 4 - Table of Contents

149) LPRINT ESC$ "$1"; 150 LPRINT "Autos" TB$; 160 FOR I=.4 TO 9.3 STEP .4 : LPRINT CHR$(lGl); : NEXT 170 LPRINT

Strany 5

ERASING DOWNLOAD CHARACTER DEFINITIONS After you have defined a set of characters (a whole new al- phabet, perhaps) you may want to

Strany 6

616 &4@9 mmmm.mmmm.mm m Figure 9-12. These download characters are defined as proportional characters. attribute byte, m0. As you kn

Strany 7

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

Strany 8 - Table of Tables

One thing to remember about defining proportional characters: a character cannot be wider than the specified width. That seems obvious

Strany 9 - SETTING UP SC-lo/l5

In the program that follows, we’ve used this technique to create some large numbers. Each digit is actually made up of four charac

Strany 10

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 =

Strany 11

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,

Strany 12 - Shipping screw

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,

Strany 13 - Tractor unit

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

Strany 15

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

Strany 16 - Prin; head

(if you’re not sure which type of interface your computer has, check the appendix for your computer). So when do you use graphics

Strany 17 - YOUR SG-lo/15

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

Strany 18 - ‘Power cord

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

Strany 19 - Powe; cord

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

Strany 20 - SG- lo/ 15’s controls

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

Strany 21

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

Strany 22 - Release lever

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,

Strany 23 - Paper bail bar

and SG-IO/15 plotting the output, you can come up with some terrific business graphs, charts, and mathematical function plots. The b

Strany 24 - Snap lever

:.” .’ Shipping screw -. _-^-_^_ Figure l-3. SC;-10 has two screws which secure the chassis during shipping; SG-15 has three. They s

Strany 25 - Tractor cover

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

Strany 26

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

Strany 27

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

Strany 28 - Adjustment leve

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.

Strany 29

Table 10-2 Dot graphics commands - - Note: If your computer CHR$(103), CHR$(121), spectively. does not support lowercase characters, use an

Strany 30

i -1 Double density graphics ( .I . . /...‘I : :. . ..- ., ,, ‘. “. : ..;.“:c..~:. ‘.. .,.. ,,... ..: $8 ‘1.:; ,. . .i ..:.. ,.i” ” .i .

Strany 31 - WITH SG-lo/15

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

Strany 32

Star’s engineers have given programmers a unique shortcut for program development though-double density double speed graphics. Although

Strany 33

< ESC > “Z” nl n2 ml m2... Print quadruple density graphics (for IBM mode) < ESC > “g” n0 nl n2 ml m2... Master graphics s

Strany 34

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

Strany 35

and guide, which are designed expressly to guide continuous paper (sprocket-feed) through the printer. n Attaching the paper separator

Strany 36

several figures shown here; they’ll tell you all you really need to know. Nevertheless, if you feel better following written instruc

Strany 37 - SG- 1 O/ 15 WITH BASIC

-‘-, - _ _. . - - - - - - - Figure 1-8. The eyelet should be between the ribbon spool and the changeover lever. - Prin; head Figure l

Strany 38

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

Strany 39

Interface connector Ground terminal ‘Power cord Figure 2-l. Front and rear views of SG-10. -. - - - - - - TRACTOR - This unit feeds spr

Strany 40

switch Control lpanel erface connectc Ground terminal Powe; cord Figure 2-2. Front and rear views of SG-15. INTERFACE CONNECTOR - Around

Strany 41 - 5 ESC$=CHR$(27)

Federal Communications Commission Radio Frequency Interference Statement The equipment generates and uses radio frequency energy and if

Strany 42

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

Strany 43

RELEASE LEVER - On top, near the left rear corner. You’ll be using this particular control often. What it does is control the press

Strany 44

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

Strany 45 - PRINTING TEXT

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

Strany 46 - Thl 5 1 .I ne ,shows

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

Strany 47 - Underline commands

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

Strany 48 - LooC:: !

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

Strany 49 - Print Ditch commands

5. Open the tractor covers, right and left (Figure 2-7). 6. Flip the clamp levers forward. This allows the two sprocket units to

Strany 50

ADJUSTING THE GAP The gap is the space between the print head and the platen. Adjusting the gap is simply adjusting the printer to

Strany 51 - Mode Control code

(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

Strany 52 - EXP, Pl3ClPCJF3TION~L

A Special Message to the New Owner Congratulations on your selecting the printer of choice for both the sophisticated as well as th

Strany 53 - Print emphasis commands

i ,(. -. - - - -- - - - - - - - -

Strany 54

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

Strany 55

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

Strany 56

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

Strany 57 - FORMS CONTROL

<LF> - the abbreviation of its name ASCII 10 - its decimal value ASCII OAH - its hexadecimal value (the H signifies hex) CHR$

Strany 58 - Line feed commands

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

Strany 59

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

Strany 60 - !nomal )

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

Strany 61 - CHR$(97) for “a.”

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

Strany 62 - Line number 2

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

Strany 63 - I-i ne number 2

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

Strany 64 - Form length commands

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

Strany 65 - I IBM I -=ESC> w

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

Strany 66

This is the command to turn on expanded print < ESC > , as we mentioned earlier, is the way we will indicate the escape code,

Strany 67

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

Strany 68

i ,(. -. - - - -- - - - - - - - -

Strany 69 - FORMATTING YOUR

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

Strany 70

10 'Demo near letter quality character set. 20 LPRINT CHR$(27) "B" CHR$(4) ; 'Select NLQ. 34) LPRINT "This line show

Strany 71

. . . - L I l@ 'Demo italic and roman. 20 LPRINT CHR$(27) "4" ; 'Italic on. 39) LPRINT "This line is in ITALIC characte

Strany 72

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

Strany 73 - Fourth tab

“S” CHR$( l), and finally off in line 90. Again, everything prints on one line because of the semicolons. CHANGING THE PRINT PITCH

Strany 74

Underlining Superscripts and subscripts Changing the Print Pitch Expanded print Making SG-lo/15 Print Darker Mixing Modes Summary Chapter 6

Strany 75 - OF THE SG-lo/15

.--_ 30 LPRINT "This line is CONDENSED pitch." 48 LPRINT CHR$(27) "B" CHR$(2) ; 'Select elite pitch. 50 LPRINT "

Strany 76

Expanded print set with CHR$(14) is automatically canceled at the end of the line. This is convenient in many applications, such as

Strany 77 - ----..

By combining expanded print with the four pitches, SG-lo/15 has eight different character widths available. Enter this program to see

Strany 78 - NC?T F’KINT

Function Double-strike ON Mode Control code STAR <ESC> “G” IBM <ESC> “G” the characters twice, but they use slightly differen

Strany 79 - Prking direction commands

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

Strany 80

Table 5-8 Master Select and the 256 ASCII Codes Pitch Normal Emphasized Double-strike Double-strike & Emphasized Pica 0, 2, 6% 8, 10,

Strany 81

SUMMARY Control code < ESC > “B” CHR$(4) < ESC > “B” CHR$(S) < ESC > “4” < ESC > “5” < ESC > “4” < ESC &

Strany 82 - Figure 8-2

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

Strany 83

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

Strany 84 - Table 8-5

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

Strany 85 - 1 A a 1 1 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

Strany 86 - FOLJR, FIVE, SIX

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

Strany 87

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.

Strany 88

without moving the printhead back to the left margin. The fol- lowing commands do just that. The < ESC > “J” CHR$(n) command

Strany 89 - OWN CHARACTERS

:..., ./, 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

Strany 90

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

Strany 91

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

Strany 92

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

Strany 93

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

Strany 94 - Sum 103 58

-.. -- -. - -. - - - - - - - -

Strany 95 - 241 @ B 2

CHAPTER 7 I FORMATTING YOUR OUTPUT You have probably used the tab and margin features on a typewriter. They make it easier to format

Strany 96

Appendix H Appendix I Appendix J The Parallel Interface Functions of the Connector Signals Serial Interface Specifications Configuring the

Strany 97

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

Strany 98 - Descender Starting Ending

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

Strany 99 - .“” ., --‘

110 RETURN The first thing that this program does is to branch to the subroutine that starts in line 70. This subroutine prints 80

Strany 100

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$

Strany 101 - 330 END

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

Strany 102

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

Strany 103 - 616 &4@9

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

Strany 104 - Mississippi

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.

Strany 105

- 1 Backspace, delete, and cancel text Backspace (CHR$(8)) “backs up” the printhead so that you can print two characters right on t

Strany 106 - 0123456789

H Unidirectional printing Unidirectional printing is a big word that means printing in one direction only. SG- lo/ 15 normally prints

Strany 107

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

Strany 108 - 112, 0

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

Strany 109 - Function

H Block graphics characters and special symbols Besides the upper and lower case letters and symbols that we are by now familiar w

Strany 110

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

Strany 111 - DOT GRAPHICS

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

Strany 112

NEW 18 LPRINT CHR$(27) "@" 20 LPRINT CHR$(27) "6" 30 FOR J = 3 TO 6 4Q LPRINT " " J CHR$(J) " "; 50 NEXT 6

Strany 113

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

Strany 114

Function Define macro Use macro Table 8-7 Macro instruction commands Mode Control code STAR < ESC > “ +“...codes you zhclude...CHR$(30)

Strany 115

In this chapter we have learned many different commands that have many different uses. In the next chapter we will make up for th

Strany 117 - 31,31,15,7,3,0,0,0,0,0

CHAPTER 9 CREATING YOUR OWN CHARACTERS In this chapter we’ll cover: l Designing and printing your own characters l Designing proportional ch

Strany 118

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

Strany 119

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.

Strany 120 - 0 X2,Y2

But there is another area of memory in the SG-lo/15 reserved for user-defined characters. These are characters that you design and

Strany 121

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

Strany 122

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

Strany 123 - Normal density graphics

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) +

Strany 124

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,

Strany 125

can define any positions except the defined control code positions. This means that once a character is defined and assigned a value

Strany 126 - S&S

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

Strany 127 - Control code Function

We’ll be discussing proportional character widths in detail later in this chapter; for now, we’ll leave it at 11. The descender dat

Strany 128

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

Žádné komentáře