Star Micronics NX-15 Printer User Manual


 
I
This program will print one line using several printing features.
Then it “calls” the macro in line 60. When line 80 prints the
style is “plain vanilla” because the macro has reset it.
10 LPRINTCHR$(27); “Q”;CHR$(40);
20 LPRINTCHR$(27); “a” ;CHR$(2);
30 LPRINTCHR$(27); “-l”;
40 LPRINTCHR$(27);“h” ;CHR$(1) ;
50 LPRINT“TESTINGABCD”
60 LPRINTCHR$(27);
“+’’; CHR$(1) ;
70 LPRINT “TESTING ABCD”
80 END
Reading a hex dump
The BASIC in some computers changes ASCII codes before
they send them to the printer. If you run into problem because
of this, try this hex dump to check the ASCII codes.
First turn off the printer. Hold down both the Paper Feed key
and Mode key and turn on the printer, and run the following pro-
gram.
10
20
30
40
50
FOR 1=0 TO 255
LPRINT
CHR$(I ) ;
NEXT I
LPRINT
END
If your system passes the codes directly to the printer without
qhanging them, you will get a printout like this. (You can print
out the last remaining line in the print buffer by putting the
printer off line with the On Line key.)