Remote-processing CAMBASIC Manuel d'utilisateur Page 117

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 208
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 116
Commands - 84
ON COM$
Tasking Statement
SYNTAX: ON COM$ n GOS UB line/label
ON COM$ n GOSUB
PURPOSE: To define a program branch when a task defined by the CONFIG COM$ statement becom es valid.
REMARK S: After defining all the parameters with CONFIG COM$ the ON C OM$ activates the task. You can
deactivate the task by executing the same statement but w ithout a line numb er after G OSU B.
n = legal serial port number.
See the Multitasking Chapter for more information.
RELATED: CLEAR COM$, COM$, CONFIG COM$
EXAMPLE: 10 CONFIG COM$ 2,0,8,0,1
20 ON COM$ 1 GOSUB 80
30 'your program goes here
.
80 PRINT COM$(2)
90 RETURN
In this example the program will branch when 8 char acters have been received. The XON and
XOFF protocol functions are disabled via CONF IG COM $ statement. All characters w ill be echoed.
ERROR: < Data negative> n
< Data out of range> if n is not a legal serial port number
< Can’t compile> if line/label does not exist
Vue de la page 116
1 2 ... 112 113 114 115 116 117 118 119 120 121 122 ... 207 208

Commentaires sur ces manuels

Pas de commentaire