•
CE-1600E
If the printer takes 10 seconds or more lor the new page operation,
an error occurs when an attempt
is made to output data following
the new page code (LPRINT
CHR$(12);).
I1 an error occurs,
add
the following command.
1 ON ERROR GOTO 60000
60000 IF ERN = 69 THEN RESUME
Lines 1 and
60000
are repeated
until the new page operation
is
completed.
6. END OF LlNE CODES AND
PROGRAM LlSTING FORMATS
Output of the end of line code at the end of a line can be turned
on and off if the amount of data exceeds
the number of columns
per
line
specified
in the
PCONSOLE
statement.
Also,
when
outputling
a program
listing, printing
of the 2nd and subsequent
lines can be started from the first column or the 8th column.
End of Llne Code Output
Problems
may arise if the number of print columns
per line set in
the PCONSOLE statement is not the same as the number of printable
columns
for the printer.
Furthermore,
most printers
automatically
perform
a line feed
after
receiving
an entire
line
of printable
characters.
(1) Select "do not output end 01 line code" Irom below il the value
132 is set in the PCONSOLE
statement
and the number
of
printable columns for the printer is 80.
If "output
end
of
line
code"
is selected,
the
printer
will
automatically
perform
a line feed after the 80th column
and
again after the 132nd column.
(2) Select "output end of line code" from below if the value
80
is
set in the PCONSOLE
statement
and the number
01 printable
columns for the printer is 132.
I1 "do not output end of line code" is selected, the 81st column
will be output on the same line. Furthermore,
if "print from the
8th
column"
has
been
selected,
7 spaces
will
be inserted
between the 80th and 81 st columns.
Selectlon of the Start Prlntlng Position
Since the line number is printed from the first column, long program
lines that require 2 or more printed lines can be printed with 2nd
and subsequent
printed lines starting from the 8th column to make
the overall
program
listing easier to read. Select this indentation
leature for easier to red program listings.
Key Entry: POKE & FE79, X
(X denotes the value 0-3 as shown in the table below.)
x
Output End 01Line Code
Listing Format
0
No
Print from
8th
column
1
Yes
Print from 8th column
2
No
Print from 1st column
3
Yes
Print from 1st column
~-
When the PC-1600
is connected
to interface
for the first time or
when the raset button is pressed, X = 0 will be selected. Futhermore,
whenever
the power is tumed on again, the previous
values that
were specified belore the power was tumed off are retained.
Note:
The end of line code referred
to on the previous
page
is
specified in the PCONSOLE
statement. However, if a program
line is less that the number of columns
per line specified
in
the PCONSOLE
statement,
the end of line code specified
in
the PCONSOLE
statement
will be output.
-2-
7.
PRINTER INTERFACE
The interface can connect with most Centronics compatible
printers.
The interface uses handshaking
through the BUSY siqnal. For your
reference,
the
printer
interface
connector
signals,
printer
cable
wiring, signal timing chart, and electrical
requtrements
are given in
the
following.
The
information
is not
necessary
il
a SHARP
recommended
printer and cable are used.
(1) Printer Interface Connector Signals
\<D
0 0 --------------- 00
®}
~ 0-------------------0
®
Direction of
Pin
Signal
signal as seen
Description
Number
Name
fromthe
interface
1
STROBE
Output
Strebe
pulse used to output
data.
2
DATA1
Output
3
DATA2
Output
4
DATA3
Output
8 bit data signals with the
5
DATA4
Output
signal high when the data
is "1".
6
DATA5
Output
The MSB is DA TA 8.
7
DATA6
Output
The LSB is DATA 1.
8
DATA7
Output
9
DATA8
Output
The printer is ready to
10
BUSY
Input
receive data when low.
EXPRM
Signal used to initialize the
11
Output
printer.
A Iow
pulse is output
when
the
computer is tumed
on (exceptwhen
~
is
pressed after an auto-
power off) or when the
reset button is pressed.
12
N.C.
Notused
13
N.C.
Notused
14 - 25
GND
Ground
(2) Printer Cable Wlring
The EA-158C
is wired as shown below.
Computer end
Printer end
1
2
3
4
5
6
7
8
9
10
11
14-25
1
2
3
4
5
6
7
8
9
11
31
16,17,19
- 27,
29,30
Pin 36 at the printer is not connected
in the EA-158C. Some printers
use pin 36 for the SELECT IN signal wh ich must be in the SELECT
state. See the operaation
manual for your printer. Also some printers
provide a switch for the SELECT state.