Examples - Epson LQ-860 User Manual

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

Advertisement

Variables are represented by italicized letters such as n, n1, and
The variables are explained in the comments section.
Note: Some application programs use control key sequences. See
the Control Key Chart later in this chapter.

Examples

The simplest type of command consists of a single character to be
sent to the printer. For instance, to print in condensed mode, the
code format is:
ASCII code:
Decimal:
Hexadecimal: OF
This code can be sent from a program by sending the code 15
directly.
More complex commands consist of two or more character codes.
For example, to print in double-wide mode, the code format is the
following:
ASCII code:
Decimal:
Hexadecimal:
In this case n can be either 1 (on) or 0 (off), to begin or end double-
wide printing. You can use either of the following commands to
turn on double-wide print from BASIC:
LPRINT CHR$(27);CHR$(87);CHR$(1)
LPRINT CHR$(27);"W";CHR$(1)
For the following commands that use only 0 or 1 for the variable,
either the decimal or hexadecimal values 1 and 0 or the ASCII
characters 1 and 0 can be used:
ESC U, ESC x, ESC p, ESC W, ESC S, ESC-, ESC %, and ESC w.
9-4
Command Summary
SI
15
ESC
W
27
87
1B
57
n
n
n
m.

Advertisement

Table of Contents
loading

Table of Contents