Chapter 4

Control Codes

This chapter explains how a computer uses control codes to send instructions to your printer. Specifically, you’ll learn how the control codes work with the P-80. (Appendix A shows a complete listing of all the P-80 control codes.)

If you are going to use your printer with commercial software pack- ages, it is not necessary for you to read this chapter. You can follow the printer installation instructions given in your computer or software manual. Most software packages include installation routines for dot matrix printers. It may be that you only have to specify which type of printer interface, such as RS-232C, you are using.

Note: As mentioned in Chapter 1, the P-80 uses the RS-232C serial interface. If your software asks for specifications you do not understand, consult your dealer for assistance.

ASCII Codes

Since there are many different kinds of computers and many different kinds of printers, almost all computers use a standard set of codes to communicate with printers. This set of codes is called the American Standard Code for Information Interchange (ASCII).

Pressing a character key on your computer produces a bit pattern representing a particular ASCII (pronounced “ask-ee”) code. The code is interpreted by the printer, which responds by printing the letter, number, or symbol desired. Control codes control specific printer functions.

Most of the 256 ASCII numbers are codes for specific characters. Typically, codes 32 through 126 are reserved for the standard set of

27