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

Program Interrupts and
Dressing Interrupts
Chapter 22
22-9
Example 22.1
Enabling and Disabling the Interrupt Features
N1M96L0P11111;
Enables program O11111 as a type 1 interrupt and allows it to be
executed when the interrupt signal from switch 0 is received.
N2M96L1P12345;
Enables program O12345 as a type 2 interrupt and allows it to be
executed when the interrupt signal from switch 1 is received.
N3M96L3P11111;
Enables program O11111 as a type 2 interrupt and allows it to be
executed when the interrupt signal from switch 3 is received. This is
the same program as selected for type 0 interrupts.
N4M97L3;
Disables any interrupt program that is called by switch 3. Any signal
to execute an interrupt from switch 3 is ignored after this block is
executed unless reactivated with a M96L3 block.
N5M96L3;
Re-enables interrupt program called by switch 3. Since no P word is
programmed in this block, the last programmed P word (enabling
program O11111) is active.
N5M96L0P22222;
Alters the program that is called for the interrupt with switch 0. The
new program called when the interrupt signal is received is O22222.
N6M97L0;
Disables interrupt switch 0.
N7M97L1;
Disables interrupt switch 1.
Important: All program interrupts that are enabled in a part program are
automatically disabled by the control when either an end-of-program (M02
or M30) block is read, a new program is selected as active, or a control
reset is performed.