Rockwell Automation 8520-GUM 9/Series CNC Grinder Operation and Programming Manual Documentation Set User Manual

Page 728

Advertising
background image

Program Interrupts and
Dressing Interrupts

Chapter 22

22-8

Selecting an Interrupt Program (P word)

You can select any legal subprogram or paramacro as a program interrupt
program (see chapter 10 on subprograms or chapter 20 on paramacros). To
use a program as an interrupt program, it must have a program name of 5
numeric characters following an O address (see chapter 11 for program
names). This interrupt program must contain an M99 block as its last
block. The M99 block has all the same restrictions as an M99 block for a
subprogram as described in chapter 10.

An M02 or M30 end of program command can also be used at the end of the
interrupt program. If an end of program command is executed in an
interrupt program, the control will assume it has completed program
execution of both the interrupt and the main program. Any remaining blocks
in the interrupt or main calling program are not executed. If executing a
program from memory, the main program is reset to the first block.

Program a P word in the M block that enables the interrupt (M96 in this
manual) to assign subprograms or paramacro programs to a particular type
of interrupt. When selecting a program with a P word, only the numeric
value of the program name is entered; the letter O is omitted. For example,
programming

M96L0P11111;

would enable the program O11111 as a type 1 interrupt and allow it to be
executed when switch 0 sends a signal to PAL. If the program called with
the P word does not exist, the control generates an error when the switch
that activates the program is enabled. If the P word is not programmed in
the M96 block, the control defaults to the last programmed P word. The P
word is not programmed in the disable M code block (M97 in this manual).

Advertising