Epson Y465ss127mo User Manual

Page 203

Advertising
background image

All three formats are equivalent, so you can pick the one best suited to

your purpose. Variables are represented by italicized letters such as

and The variables are explained in the comments section.
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.

ASCII code: SI

Decimal:

15

Hexadecimal: OF

More complex commands consist of two or more character codes. For

example, to print in the proportional mode the code format is the

following:

ASCII:

ESC

n

Decimal:

27

n

Hexadecimal: 1B 70 n

In this case n can be either 1 (on) or 0 (off), to begin or end proportional

printing. To turn on proportional printing from BASIC, use the following

command:
LPRINT CHR$(27);“p”;CHR$(l)
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

. . . . . . . . . . . . . . ASCII code

LPRINT CHR$(27);“W”;“l” . . . . . . . . . . . . . . . . . . . ASCII character

Command Summary

8-3

Advertising