Statements; Opn - Sharp CE-158 Instruction Manual

Interface for pc-1500
Hide thumbs Also See for CE-158:
Table of Contents

Advertisement

All
and more about Sharp
PC-1
500
at
http:l/www.PC-1500.info
4.
Statements
Such
as LPR
INT, LLIST,
FEED,
CONSOLE, and
PRINT#-9, are used for command state-
ment
for
the
parallel
port
With
the LPR
INT,
LUST,
FEED.
and CONSOLE
statements,
(1) Command
is executed to the
parallel
port
after OPEN
'LP RT'. or.
(2)
not
to
the
parallel port
after OPN or SETD
EV,
but
to CE·
150
(LPRINT, LLIST) or
RS·
232C port (FEED,
CONSOLE).
Statement
Manual
execute
Program
Example
RUN
PRO RESERV
E
8X
eo.J
te
Description
LPR
INT, LUST. FEED.
and
CONSOLE
state·
OPN"LPRT"
0
0
0
0
ment after
this
w
ill
be
executed to
the
parallel
OPN
port.
LPRINT
and
LL
IST
.
after this
eKccutcd to
OPN
0
0
0
0
the CE-150,
~nd,
FEED
and
CONSOLE
after
this
is executed to
the
RS-232C
port
.
CONSOLE
CONSOLE
80,
1
0
0
0
0
Seu
digits/line
and
END
code.
LPRINT
LPRIN
T 123
0
0
0
0
Data
sent
on parallel
port.
LLIST
LLIST
0
0
0
0
Program sent
on parallel
10,100
port
.
FEED
FEED
5
0
0
0
0
ENO
code
sent on
parn
lei
port.
PRINT#-9.
PR
INT#
- 9,
0
0
0
0
Same as LPR
INT.
123
(1)
OPN
With
this
command is
assigned
1he 1/0
port
for
the
1/0
statement.
All assignment
by SETDEV
arc
cleared
upon
execution of
thi
s
command.
1)
OPN 'LPRT'
The parallel
port
is assigned
for·
the device.
LPRINT,
LLIST.
FEED.
and CONSO
LE
statements
alter this
are
executed
to
the
parallel
po
rt
.
2)
OPN
Cancels
the device
assignment,
then
the
following operation
is as sumed.
LPR
INT
and
LLIST
statement$ are cxecu1ed
to
the
CE· 150.
If
the
CE·
150
was
not
con·
nccted,
it
results
in
ERROR
27
.
FEED
and
CONSOLE
sta1ements are
executed
to
the
RS·232C
port.
Table
in
the
next
page
described
the
port
execu
ted by the 1/0
s
tatement of SETO
EV
and
OPN
.
Do not
sell
this
PDF
!!!
68

Advertisement

Table of Contents
loading

Table of Contents