All three formats are equivalent, so you can pick the one best suited to your purpose. For instance, a BASIC programmer might refer to the first and second formats, a word processor might use the second, and a machine code programmer would use the third format. Variables are represented by italicized letters such as n, nl, m. The variables are explained in the comments section.

Some application programs make use of control key sequences. See the Control key chart on page 9-4 of this chapter.

For the following commands that use only 0 or 1 for the variable, either the ASCII codes 0 and 1 or the ASCII characters 0 and 1 can be used:

ESC U, ESC x, ESC p, ESC W, ESC S, ESC -,

ESC % and ESC w

For example, in BASIC you can turn on double-wide with either of these statements:

LPRINT CHR$(27);“W”;CHR!$(l) -ASCII Code

LPRINT CHR$(27);“W’;“l”-ASCII Character

These correspond to:

ESC W SOH or ESC W1

Examples

The simplest type of command consists of sending a single character to the printer. For instance, to print in condensed mode, you send the code 15. The code format is:

ASCII code: SI

Decimal: 15

Hexadecimal: OF

9-3