PI1X Basic Programming Manual Ver. 1.10
114/156
ELSE
AA%=LINKPORT_WRITE(1,A$,1)
IF AA%>0 THEN PRINT A$;
END IF
END IF
END IF
STR1$=LINKPORT_READ$(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.
Purpose
:
New write characters to LinkingPort.
Syntax
:
N1%=LINKPORT_WRITE_N(N2%,A$,N3%)
Example
:
A%=LINKPORT_OPEN
…
WHILE 1
A$=INKEY$
IF A$<>"" THEN
IF(ASC(A$)=27) THEN