Star Micronics SB-15 Printer User Manual


 
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 SD- 1 O/ 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 h
orizontal tabs), and < ESC > “P”...
CHR$(O) or < ESC > “B”... CHR$(O) (set vertical tabs).
-
U
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$( 15)).
SELECTING THE RIGHT SOFTWARE MODE
For SD-lo/l 5 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 SD-lo/l5 in IBM
mode. If you’re using other computer, you should put SD-lo/l 5
34