
PT-Basic Programming Manual Ver. 1.00 90/143
To send a string to the host through a specified COM port.
CLS
PRINT "===COM TEST==="
PRINT "ENT TO WRITE"
SET_COM(1,1,1,2,1)
OPEN_COM(1)
WHILE INKEY$<>CHR$(13)
WEND
STR1$="Hello!!"
WHILE GET_CTS(1)=0
WEND
WRITE_COM(1,STR1$)
…
CLOSE_COM(1)
END
N% is an integer variable indicating which COM port the
data is to be sent to (now we only can choose 1).
A$ is a string variable indicating the string to be sent.
PRINT “CTS Status:”,GET_CTS(1)
A% is an integer variable to be assigned to the result.
N% is an integer variable indicating which COM port to get
CTS level (now we only can choose 1).
Commentaires sur ces manuels