Call 21 – disable processor interrupt, Call 26 – module interrupt, Example – Rockwell Automation 1746-BAS BASIC LANGUAGE User Manual
Page 100: Purpose, Syntax

Publication 1746-RM001A-US-P
8-4 Execution Control and Interrupt Support Functions
Example
>1
REM EXAMPLE PROGRAM
>10
REM ENABLE PROCESSOR INTERRUPTS
>20
PUSH 1000 : REM LINE NUMBER OF START OF PROCESSOR
INTERRUPT ROUTINE
>30
CALL 20
>1000 (BEGINNING OF THE PROCESSOR INTERRUPT ROUTINE)
:
>1050 RETI
CALL 21 – Disable
Processor Interrupt
Purpose
Use CALL 21 to disable the processor interrupt capability enabled with CALL 20.
This routine has no input or output arguments.
Syntax
CALL 21
Example
>1
REM EXAMPLE PROGRAM
>10 REM DISABLE PROCESSOR INTERRUPTS ENABLED WITH CALL 20
>20 CALL 21
CALL 26 – Module
Interrupt
Purpose
Use CALL 26 to generate an interrupt to the SLC 5/02
and above processors. No
arguments are PUSHed and one argument is POPped. The POP shows the status
of the SLC processor. When this CALL is executed, an I/O event interrupt is issued
by the module to interrupt the normal processor operating cycle in order to scan a
specified subroutine. This interrupt causes the SLC processor to execute the
interrupt subroutine file configured in the module slot configuration (ISR
numbered file). The module remains in this CALL routine until an interrupt
acknowledge is received from the processor. CALL 26 must be executed in the
BASIC program each time the SLC processor is to be interrupted.
This CALL has no effect if the SLC processor is not in the Run mode.
After the module issues the CALL, it may take up to 5 milliseconds for the
execution of interrupt to occur.