Rockwell-automation 1746-BAS BASIC LANGUAGE User Manual Page 100

  • Download
  • Add to my manuals
  • Print
  • Page
    / 280
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 99
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.
Page view 99
1 2 ... 95 96 97 98 99 100 101 102 103 104 105 ... 279 280

Comments to this Manuals

No comments