beautypg.com

Cleari, Clears, Cleari -3 clears -3 – Rockwell Automation 1746-BAS BASIC LANGUAGE User Manual

Page 79

background image

Publication 1746-RM001A-US-P

Assignment Functions 6-3

CLEARI

Purpose

Use the CLEARI statement to clear all of the BASIC evoked interrupts. The
ONTIME interrupt is disabled after the CLEARI statement is executed.

CLEARI does not affect the free running clock enabled by the CLOCK1
statement. CLOCK0 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.

Syntax

CLEARI

Example

READY

>CLEARI

CLEARS

Purpose

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.

Syntax

CLEARS

Example

READY

>CLEARS

IMPORTANT

When the CLEARI statement is LISTed it appears as CLEARI.

IMPORTANT

When the CLEARS statement is LISTed it appears as CLEARS.