Star Micronics NB24-10/15 user manual The code to sound the “bell” is CHR$7, which is ASCII code

Models: NB24-10/15

1 133
Download 133 pages 41.98 Kb
Page 97
Image 97
The code to sound the “bell” is CHR$(7), which is ASCII code

88

-

 

The code to sound the “bell” is CHR$(7), which is ASCII code

7 or (BEL). Any time your printer receives this code it will sound the bell for a quarter of a second. This can be used to re- mind the operator to change the paper or to make other ad- justments to the printer.

You can try this by typing:

LPRINT CHRS(7)

w Resetting the printer

Up to now when we wanted to reset the printer to the power on condition we have had to either turn the printer off and on again, or to send the specific codes that reset the particular features. There is an easier way. The control code (ESC) “a” will reset all of the printer’s features to the power on condition (as determined by the DIP switches), with two exceptions. The exceptions are that (ESC) “a” will not erase any characters that you have stored in the printer’s RAM memory (Chapter 7 tells you how to create your own characters), and if you set the “Panel” modes by the control panel settings at power on, these functions will remain with this control code.

nTaking the printer off line

You know how to put your printer off line with the On Line key on the control panel. The printer has another off line state that can be controlled from the computer. When you turn the printer off line from the computer, the printer will ignore anything that you send it, except for the code to go on line again. CHR$(lS) ((ESC) “Q” 3 with the IBM-P mode) is the code to turn the printer off line; CHR$(17) turns the printer back to on line status.

nPrinting the bottom of the sheet

Sometimes when you are using individual sheets of paper you may want to print near the bottom of a sheet. The paper-out detector usually stops the printer when you are about 1 inch from the bottom of the sheet. This is notify you if you are run- ning out of continuous paper.

Your printer has the ability to print right to the bottom of the

Page 97
Image 97
Star Micronics NB24-10/15 user manual The code to sound the “bell” is CHR$7, which is ASCII code