60
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 CHR$(7)
nResetting 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) “(3” |
|
| |||||
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) “@” will not erase any characters |
|
| |||||
that you have stored in the printer’s RAM memory (Chapter 6 |
|
| |||||
tells you how to create your own characters), and it won’t erase |
|
| |||||
a macro if you have one stored in the printer’s RAM (this |
|
| |||||
chapter will tell you how to create a macro). |
|
|
| ||||
In addition, if you set the “Panel” mode by the control panel |
|
| |||||
settings at power on, these functions will remain with this con- |
|
| |||||
trol code. |
|
|
|
|
|
| |
n Taking 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) 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
-