Remote Processing Coorporation RPC-320 Specifiche Pagina 137

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 186
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 136
Commands - 107
START BIT
Tasking Statement
SYNTAX: START BIT task number [,task number]. . .
PURPOSE: To enable a BIT task that has previously been defined with an ON BIT statement.
REMARKS: You can disable the task using the STOP BIT statement. The START BIT statement will start the last
task that was declared by the ON BIT statement.
If you use START BIT without first defining the task with the ON BIT statement, CAMBASIC
cannot know whether a valid task exists. Attempting to start a nonexistent task will usually produce
nonsense errors.
See the Multitasking Chapter for more information.
RELATED: BIT function and statement, ON BIT, STOP BIT
EXAMPLE: 10 ON BIT 0,0,0 GOSUB 60
20 START BIT 0
30 PRINT "waiting..."
40 DELAY .5
50 GOTO 30
60 IF BIT(0,0)=0 THEN PRINT "closed" ELSE PRINT" open"
70 RETURN
ERROR: <Data out of range> – If task number > 7
<Data negative> – for task number
Vedere la pagina 136
1 2 ... 132 133 134 135 136 137 138 139 140 141 142 ... 185 186

Commenti su questo manuale

Nessun commento