Remote Processing Coorporation RPC-320 Specifiche Pagina 143

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 186
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 142
Commands - 113
STOP INP
Tasking Statement
SYNTAX: STOP INP n [,n1] [,n2]
PURPOSE: To disable one or more INP tasks declared by the ON INP statement.
REMARKS: The task parameters are defined by the ON INP statement. STOP INP deactivates the task. You may
specify more than one task parameter so that several tasks may be stopped simultaneously.
NOTE: STOP INP is only executed after a START INP has been executed.
RELATED: START INP, ON INP
See the Multitasking Chapter for more information.
EXAMPLE: This demonstration program can be expanded to do more complex tasks. The state of the input lines
are printed by line 40. After 10 seconds, the task is disabled. After 30 seconds it is enabled again.
10 CLEAR TICK
20 ON INP 0,3,7,5 GOSUB 80
30 START INP 0
40 PRINT BIN$(INP(0))
50 DELAY .25
60 IF (TICK(0) > 10) AND (TICK(0) < 30) THEN STOP INP 0 ELSE START INP 0
70 GOTO 40
80 PRINT "match"
90 RETURN
ERROR: <Data negative> – for n
<Data out of range> – if nKEYBOARD() > 7
Vedere la pagina 142
1 2 ... 138 139 140 141 142 143 144 145 146 147 148 ... 185 186

Commenti su questo manuale

Nessun commento