Stop bit – Remote Processing CAMBASIC User Manual

Page 157

Advertising
background image

Comm ands - 124

STOP BIT

Tasking Statement

SYNTAX:

STOP BIT task [,task ] . . .

PURPOSE:

To disable a bit that has previously been defined with an ON BIT statement and enabled with a
STAR T BIT state ment.

REMARK S:

You can reenable the task by using the START BIT statement. You do not need to re-execute the
ON BIT statement.

See the Multitasking Chapter for more information.

RELATED:

BIT function and statement, ON BIT, START BIT

EXAMPLE:

10 ON BIT 0,2,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 STOP BIT 0
80 RETURN

ERROR:

< Data out of range> – If task number > 7
< Data negative> – for task number

Advertising