Carriage return

CR 13

0DH

CTRL/M

CHR$(13)
Its common name

The abbreviation of its name Its decimal ASCII code

Its hexadecimal ASCII code Its control-code nameIts usage in BASIC

So your problem is to figure out what code you want to use, no matter what it is called. You may find that this can be quite a problem. Your computer’s manual may say to use ASCII 10 while your spreadsheet program recommends a CTRL/J. You need to know that they are both talking about the same code.

This manual tells you the different names for the same code. Appendix A gives a complete summary of all the control codes (also called commands). Appendix E contains a conversion chart for all the common names for the ASCII codes.

Some of the LQ-1500’s functions are controlled by codes consisting of one character. These are the ASCII codes with decimal values between 1 and 31, and are the codes that you can type by holding the control key while you press a letter key. For example, the code ASCII 12 is the same as CTRL/L and advances the paper to the top of a new

page.

Of course the LQ-1500 has many more than 31 functions. To use the many additional functions, you use one special code to enable all the control codes that consist of more than one character. This code is called Escape, and in this manual it is abbreviated as <ESC> . You will use this code often with the LQ-1500 because it allows you to use the many features of the printer.

Here is an example of how the escape code is used. It may seem tricky at first, but follow along and you’ll soon understand. The code to turn on the italic print function is <ESC> “4”. The 4 in this code is the numeral 4, not ASCII 4; the numeral 4 is ASCII 52.

Remember that the ASCII codes 0 through 32 have commonly used abbreviations for their names. In these cases we use the abbreviations. <ESC>q is the abbreviation for escape, which is also ASCII 27.

Therefore, the <ESC> “4” that turns on italic print actually is ASCII27followed by ASCII 52. But <ESC> “4” is easier to understand and remember.

47