Argox PA-20 Basic Programming Manual Uživatelský manuál Strana 90

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 143
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 89
PT-Basic Programming Manual Ver. 1.00 89/143
READ_COM$
Purpose
To read data from a specified COM port.
Syntax
A$ = READ_COM$(N%)
Example
ON COM(1) GOSUB READ1
CLS
PRINT "==COM TEST=="
LOCATE 0,1
PRINT "ENT TO WRITE"
SET_COM(1,1,1,2,1)
OPEN_COM(1)
CLEAR_COM(1)
SET_RTS(1,1)
LOOP2:
IF INKEY$="" THEN
GOTO LOOP2
END IF
CLOSE_COM(1)
END
READ1:
A$=READ_COM$(1)
PRINT A$
RETURN
Description
A$ is a string variable to be assigned to the data.
N% is an integer variable indicating which COM port the
data is to be read (now we only can choose 1).
If the receiver buffer is empty, an empty string will be
returned.
Zobrazit stránku 89
1 2 ... 85 86 87 88 89 90 91 92 93 94 95 ... 142 143

Komentáře k této Příručce

Žádné komentáře