Epson LQ-1500 User Manual page 107

Epson printer user manual
Hide thumbs Also See for LQ-1500:
Table of Contents

Advertisement

Using the LQ-1500 Commands with BASIC
Most versions of
tion to send codes to the printer. In the CHR!$(n) function the value n is the
number of the code that you want to send to the printer. For example, to set a
right margin at column 60, the LQ-1500 command is:
<ESC> "Q" 60
BASIC it looks like this:
In
LPRINT CHR$(27) "Q" CHR$(60);
Control Codes by Function
Vertical Spacing Commands
<LF>
<ESC> "J" n
<ESC> "0"
<ESC> "2"
<ESC> "3" n
<ESC> "A" n
<FF>
<ESC> "C" n
<ESC> "C" <NUL> n
<ESC> "N" n
<ESC> "O"
<VT>
<ESC> "B" nl n2 n3.
<ESC> "/ " c
<ESC> "b" c nl n2 n3
Horizontal Spacing Commands
<CR>
<ESC> "Q" n
<ESC> "I" n
<HT>
<ESC> "D" nl n2 n3 ... <NUL>
<ESC> <SP> n
<ESC> "$" nl n2
<ESC> " \ " nl n2
Print Style Commands
<ESC> "x" n
<ESC> "I" n
<ESC> "M"
<ESC> "P"
<ESC> "p" n
BASIC use the LPRINT command and the CHR$(n) func-
Produces a line feed.
Advances the paper n/180 inches (0
Sets the line spacing to 1/8 inch.
Sets the line spacing to 1/6 inch.
Sets the line spacing to n/180 inch (0 n
Sets the line spacing n/60 inches (0
Produces a form feed.
Sets the length of the page to n lines (1
Sets the page length to n inches (1
Sets a bottom margin of n lines (1
Sets the bottom margin to 0 lines.
Produces a vertical tab.
<NUL>
Sets up to 16 vertical tabs on lines nl, n2, n3, etc.
( l
n
2 5 4 ) .
Selects a vertical tab channel (0
<NUL>
Sets up to 16 vertical tabs on lines n1, n-2, n3, etc. of vertical
tab channel c (0
Produces a carriage return.
Sets a right margin at n columns (1
Sets the left margin at n columns (0
Produces a horizontal tab.
Sets up to 32 horizontal tabs at character positions n1. n2, n3,
etc. (1
n 137).
Increases the space between characters by n dots (0
Moves the print head to an absolute horizontal position.
Moves the print head a specified distance from the last charac-
ter printed.
Selects between the draft mode (n=0) and the letter-quality
mode (n=l).
Selects multiple printing styles (Master Select command)
(0
n
255).
Selects elite pitch.
Cancels elite pitch.
Turns proportional printing ON (n = 1) or proportional print-
ing OFF (n=0).
c
7)(1
n
n $255).
255).
n
85).
n
127).
22).
127).
c s 7).
254).
n
255).
n
160).
n
127).

Advertisement

Table of Contents
loading

Table of Contents