Interface And Printer Control Commands; Switching The Interface On And Off; Setting Defaults - Epson 8133 User Manual

New apple ii intelligent parallel interface
Table of Contents

Advertisement

There are a number of commands to control the printer and set the
defaults - the command settings used if you do not make any changes.
These are:
11111111111111111111111
INTERFACE AND PRINTER
11111111111111111111111
CONTROL COMMANDS
SETTING DEFAULTS
1 1 111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
It is possible to set a number of parameters on an Epson printer
using the DIP switches. For example, if you are going to use
condensed printing for wide spreadsheets, you may be able to set the
printer to default to condensed mode in this way. The command
<CTRL>·I @, restores the printer to these default settings without the
need to switch the printer on and off. Note, however, that where the
SWITCHING THE INTERFACE ON AND OFF
l l lllllllllll l llllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllillllllllllllllllllllllllllllllllllllllllilllllllllll
It is normally only necessary to switch the interface on and off
using the PR #
1
and PR # 0 commands when writing APP LESO FT or
INTEGER BASIC programs. Machine code programming, PASCAL
and MBASIC or GBASIC (supplied with CP/M) have ways of directing
output to the printer. Applications programs have special commands
for printing. The use of PR # 1, PR # 0 and <CTRL>-1 Y is thus covered
in the section on using the interface with BASIC.
what it does
DOS command to direct output to the printer if the
card is installed in slot I.
DOS command to disable the interface
Control command to disable the interface
Control command to reset the printer defaults
Control command to set the interface defaults
Control command to retore normal printing
Control command to enable screen echo
Control command to disable screen echo
PR #1
PR #0
<CTRL>-IY
<CTRL>·I@
<CTRL>-IZ
<CTRL>-IV
<CTRL>-11
<CTRL>-IJ
command
PRINT CHR$(27);"G"
Remember to turn on the printer first, with the PR# 1 command.
CP/M and DOS both allow the use of <ESC> codes. The form that
the commands take depends on the program being used. For example,
with MBASIC and GBASIC, use LPRINT CHR$(27);"G" to send the
<ESC> G code to the printer.
Specific examples on the use of the #
8133
interface with BASIC,
DOS, Pascal and CP/M are covered elsewhere in this manual.
As well as the #
8133
interface commands themselves, you can also
use printer control codes known as ESC/P codes. These form a
standard laid down by Epson for the control of printers. It is rapidly
becoming the universal standard and is often used by applications
programs and programs not originally written for the Apple.
In fact, the interface commands use the ESC/P code sequences to
control the printer. In most cases you will find it easier to use the
<CTRL>-1 commands because one <CTRL>·l command sometimes
uses several ESC/P codes, but some effects can on! y be achieved by
using the ESC/P codes directly. If you want to find out exactly which
ESC/P commands are used by the interface, you should put your
printer into HEX DUMP mode, as described in the printer manual,
then send the command from the interface. By comparing the codes
which are printed with the table of ASCII characters in your printer
manual, you should then be able to identify each command.
ESC/P commands usually begin with the <ESC> (ESCAPE)
character, which has a decimal ASCII code of Tl. The <ESC>
character is then followed by one or more ASCII characters which
make up the command. For example, <ESC> G sets the printer to
double-strike mode.
From APPLESOFT, the <ESC> G code can be sent using the
command:
iz
13

Advertisement

Table of Contents
loading

Table of Contents