Remote-processing CAMBASIC Manual de usuario Pagina 117

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 208
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 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
Vista de pagina 116
1 2 ... 112 113 114 115 116 117 118 119 120 121 122 ... 207 208

Comentarios a estos manuales

Sin comentarios