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

Page 722

Advertising
background image

Program Interrupts and
Dressing Interrupts

Chapter 22

22-2

Enable or disable program interrupts on the control by using two modal M
codes. Your system installer determines in AMP these M codes. This
manual assumes these values for these M codes (the default values in AMP):

M96 Enables Program Interrupts

M97 Disables Program Interrupts

When program interrupts are enabled (M96), the correct interrupt signal to
PAL causes an interrupt program to be executed. When program interrupts
are disabled (M97), the control ignores the interrupt signal.

The format for these M codes is:

M96L__P__;

M97L__;

Where:

Is:

L

the type of interrupt and the signal that calls the interrupt

L ranges from 0 - 3.

P

the interrupt program

P is followed by a 5-digit, numeric, non-decimal program name.

An error appears if you program anything other than an N, P, or L word, a
block delete /, or a comment character in the M96 or M97 block.

You can also program interrupt M code M96 or M97 within a subprogram
or paramacro program called by the program interrupt. If this is the case,
the new program interrupt does not become enabled/disabled until the
currently executing subprogram or paramacro program is completed and
execution is returned to the main program.

A program interrupt cannot be executed while another program interrupt or
dressing interrupt is in progress.

Important: Interrupt programs should normally be disabled during thread
grinding. The execution of an interrupt program during a threading pass
can cause undesired results.

22.1.1
Enabling/Disabling Program
Interrupts (M96, M97)

Advertising