Star Micronics Rainbow NX-1000C User Manual page 42

Table of Contents

Advertisement

In the ASCII operating mode the printer always uses its fifth character
set:
Standard ASCII character set
Tables of the character sets are given in Appendix C. The graphics
character sets include a large number of graphics characters but no lower-case
letters. The business character sets have lower-case letters but fewer graphic
characters. In the DIN character sets some graphics characters are replaced
by international characters. The ASCII character set has no graphic char-
acters.
In the business character sets the character codes of the upper- and
lower-case letters are reversed from the other character sets. Character codes
65 through 90 print upper-case letters in the graphics and ASCII character
sets, but lower-case letters in the business character sets. Character codes
97 through 122 print lower-case in ASCII but upper-case in the business
character sets.
You should select the operating mode and character set you normally
use with the printer's DIP switches as explained in Chapter 1. Within pro-
grams, you can switch to other modes and character sets with the following
commands:
To select Commodore mode:
<
27>
<
93 >
<
48 >
To select the business character set:
<
17
>'
To select the graphics character set:
<
145 >
To select the ASCII mode and character set:
<
27>
<
93 >
<
49 >
The
<
17> and
<
145> commands take precedence over the character
set selected by the secondary address in the OPEN statement.
Note that there is no command for differentiating between the Com-
modore standard and DIN character sets. This selection must be made with
DIP switch 9.
The following program prints the graphics, business, and ASCII char-
acter sets, then resets the printer to its DIP switch selections. The reset
command is
<
27>
<
64 > in line 230.
It
is a good idea to put this command
at the end of any program that changes the printer setup, to prevent the
changes from being carried over into the next program you run.
100 REM
CHARACTER SETS
110 FOR I= 32 TO 127 :A$=A$+CHR$(I)
120 FOR I=160 TO 255 :B$=B$+CHR$(I)
32
:NEXT
I
:NEXT I
r:
r:
I:
I:
I :

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents