PI1X Basic Programming Manual Ver. 1.10
115/156
EXIT
ELSE
AA%=LINKPORT_WRITE_N(1,A$,1)
IF AA%>0 THEN PRINT A$;
END IF
END IF
END IF
STR1$=LINKPORT_READ_N$(1,1)
IF LEN(STR1$)<>0 THEN
PRINT STR1$;
END IF
WEND
…
A%=LINKPORT_CLOSE(1)
…
Description
:
After opening LinkingPort, you can write characters to that
LinkingPort.
N1%
is an integer variable.It will tell you how many characters
send to that LinkingPort device and other mean as bellow:
N2%
is an integer variable indicating LinkingPort’s port number.
The value is form 1 to 4.
A$
is a string variable indicating the characters is to be sent.
N3%
is an integer variable indicating number of bytes to be writen
to that LinkingPort device.
N1%
Meaning
>=0
How many characters send to that
LinkingPort.
-4
Parameter error.
-5
Connect fail.
-6
LinkingPort is not open.
-8
LinkingPort is connecting.
Purpose
:
Read characters from LinkingPort.
Syntax
:
A$=LINKPORT_READ$(N1%,N2%)
Example
:
A%=LINKPORT_OPEN
…
WHILE 1
A$=INKEY$