Epson LQ-2550 User Manual page 203

Epson lq-2550: user manual
Hide thumbs Also See for LQ-2550:
Table of Contents

Advertisement

All three formats are equivalent, so you can pick the one best suited to
your purpose. Variables are represented by italicized letters such as n, nl,
and m. 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.
A S C I I c o d e : S I
Decimal:
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:
Decimal:
Hexadecimal:
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 CHR$(27);'W";CHR!$(l)
LPRINT CHR$(27);"W";"l" . . . . . . . . . . . . . . . . . . . ASCII character
Command Summary
15
ESC
27
1B
70
n
n
n
. . . . . . . . . . . . . . ASCII code
8-3

Advertisement

Table of Contents
loading

Table of Contents