6. Instat; Input - 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-1500
at
http:l/www.PC-1500.info
6. INSTAT
Function
used
to get
RS·232C
port
han<lshake
signal
state (0-
31 ).
NOTE:
Execution
of
the
RS·232C port
1/0
command
execution
will
be
suspended when
a
bit
of
anv
of input
signals,
OSR.
CD.
or CTS
is
"1
".
Execution will take
place as
soon
as
it
turns
to
"O".
7.
INPUT
Effective o
nly
when Kl
has been
declared
by the
SETDEV statement.
ASCI
I
code
data
sent
through
the
RS·232C port is
substituted
with the
variable.
Data
is
received
through the
RS·232C
port
with a
question
mark
"?'"
on
the LCD
display.
(21
I
NPVT---->
"GU
I
DANCE'',
I.:r:~
. . .
~1-e
- - '
Same
as
111
except
that "GUIDANCE" is
put on
the LCD display.
(3)
INPUT
--+
"GUIDANCE";
Cr'.a~b-le-~
Same as
(2).
Data
will be
received
through the RS·232C port until
the
CR
code
is
met. (Maximum
size
of
data will be
80 digits.)
Existence
of
a
comma (
,
)
before
the CR code. will
be
assumed
10
be
a
data
separator.
If
the
number of
the
variable
specified
by the
INPUT
statement
is
smaller than
that
of
the
in put
data.
it will result
in
ERROR 65. If larger,
on
the
contrary, data
are received
fo
r as
many as
specified
in
the
statement, and
the
last
data of the input
is put
on
the display.
For
(
1)
and
{2)
above,
the question
mark
"?"
and the message "GUIDANCE'"
are
put out of the
displ•v.
but
for
(3),
the
last data
part
is
put on the
display
after the message "GUIDANCE."
NOTE·l:
NOTE·2:
NOTE·3:
{EX)
to
20
30
40
50
60
In
the "I NPUT",
"I
NPUTS"
and
"INPUT·8," statements. the "(double
quotation)
and#
(comma) can
not
be
substituted
with nonnumeric
variables.
If
the above
("or.)
is
used. the ERRO
R
65
will
be
caused.
Data ending
with the CR
code
is
translated
into
intermediate
cornputer
languaue
if
the
variable to
be substituted
next
is a
numer ic
variable.
If
s.ubstituting varinblcs
continue
to
be
numeric
variables,
nonnumoric
variables
and so
on. with the
received data
separated
into
several sections by
a
comma,
it
may re$ult in
error
when
there is
a code string
in
the data (i.e. RUN,
PRINT, SIN.
etc.) which
is
to
be
substi
ruted with the
nonnumcric variable.
If
the first
data from
the
RS-232C
port
is
the
CR
code, that
program line is
skipped.
OUTSTATll
SETCOM
300.
8
,
N
.
1
SETDEV
Kl
INPUT "IN
EXCURSION
OF Kl"
,
A,
BS,
C
LPR
INT
A
;
8$
;
C
END
20
Do not
sell
this PDF !!!

Advertisement

Table of Contents
loading

Table of Contents