Remote-processing CAMBASIC Uživatelský manuál Strana 55

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 208
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 54
Commands - 22
COM$
Process Function
SYNTAX: n$ = COM$(n)
PURPOSE: To return a string from the serial input buffer. This function is usually used in conjunction with ON
COM $.
REMARK S: n = legal serial port number (1 or 2).
COM$ returns the characters in the buffer up to the terminating character (if specified) or the total
number of characters in the buffer.
When COM$ is executed, the characters in the buffer are removed. Immediately executing COM$
again will produce a null string.
RPC-2350 NOTE: The CAM BASIC statement BIT 128,4, 0 may need to be executed before you
will receive any characters. This command enables the CTS line to the sender.
RELATED: CLEAR COM$, ON COM$, CONFIG COM$
EXAMPLE: See the ON COM $ statemen t.
ERROR: < Data negative> for n
< Illegal argument> if n is not a legal serial port number
Zobrazit stránku 54
1 2 ... 50 51 52 53 54 55 56 57 58 59 60 ... 207 208

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

Žádné komentáře