Remote Processing Coorporation RPC-320 Specifikace Strana 137

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 186
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 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
Zobrazit stránku 136
1 2 ... 132 133 134 135 136 137 138 139 140 141 142 ... 185 186

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

Žádné komentáře