Cleari, Clears, Cleari clears – Rockwell Automation 1771-DB BASIC MODULE User Manual
Page 155

Chapter
Statements
11
11 -3
Use the CLEARI statement to clear all of the BASIC evoked interrupts.
The ONTIME (page 11 -25) interrupt is disabled after you execute the
CLEARI statement.
The CLEARI statement does not affect the free running clock that is
enabled by the CLOCK1 statement (page 11 -5). CLOCK0 (page 11 -4)
is the only module statement that can disable the free running clock.
You can use this statement to selectively disable ONTIME interrupts
during specific sections of your BASIC program. You must execute the
ONTIME statement again before the specific interrupts are enabled.
You can also use CLEARI in Command mode.
Important: This statement does not clear CALL 32, CALL 16 or ONDF1.
Syntax
CLEARI
Example
READY
>CLEARI
Use the CLEARS statement to reset all of the stacks. The control,
argument, and internal stacks all reset to their initialization values.
You can use this command to reset the stacks if an error occurs in a
subroutine.
You can also use CLEARS in Command mode or if you wish to exit a loop
(i.e., GOSUB, DO WHILE, FOR NEXT, etc.).
Syntax
CLEARS
Example
READY
>CLEARS
CLEARI
CLEARS