Star Micronics SR-10/I5 user manual Selecting The Right Software Mode

Models: SR-10/I5

1 130
Download 130 pages 19.46 Kb
Page 42
Image 42
SELECTING THE RIGHT SOFTWARE MODE

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 our example, you should send a capital W following the escape code. In BASIC, you could do this in a couple of ways: by sending the character itself (e.g. LPRINT “W”;), or by using the CHR$ function to send the ASCII code for the character (e.g. LPRINT CHR$(87);).

Many of SR- lo/ 15’s commands end with a 1 or 0. When shown as in the above example (i.e. no quotes and no “CHR$“), you can use either ASCII code 1 (i.e.CHR$(l)) or the character “1” (which is ASCII code 49). The same idea applies to commands ending with 0.

So for our example above, any of these BASIC statements

will have the same result:

 

LPRINT CHR$(27) "W" CHR$(l)

 

LPRINT CHR$(27) "W" CHR$(49)

 

LPRINT CHR$(27) "Wl"

 

There are three commands that require the use of ASCII code

 

0; the character “0” (ASCII code 48) cannot be substituted. In

 

these cases, instead of an unadorned 0 we will show CHR$(O)

 

each time these commands are referenced. The commands are

-

 

<ESC > “C” CHR$(O) n (set page length to n inches), < ESC > “D”... CHR%(O) (set horizontal tabs), and < ESC > “P”...

CHR$(O) or < ESC > “B”... CHR$(O) (set vertical tabs).

There are other non-printing codes that are used ( such as ASCII

-

code 15, which is used to turn on condensed pitch). These

 

commands will be introduced using the BASIC CHR$ function

 

(e.g.CHR$(lS)).

 

SELECTING THE RIGHT SOFTWARE MODE

 

For SR-IO/15 to correctly respond to control codes, you must

 

make sure that you’ve set its DIP switch properly. If you’re using

 

the IBM Personal Computer, you should put SR-lo/15 in IBM

 

mode. If you’re using other computer, you should put SR-lo/15

 

32

Page 42
Image 42
Star Micronics SR-10/I5 user manual Selecting The Right Software Mode