Program interrupt – Rockwell Automation 8520 9/Series CNC Lathe User Manual

Page 731

Advertising
background image

Chapter

29

29-1

Program Interrupt

This chapter describes the program interrupt feature. This feature lets you
execute a subprogram or paramacro program while some other program is

executing. This subprogram or paramacro is executed when PAL receives

an interrupt signal (usually through the use of some switch triggered by the

operator or one of the axes). The interrupt program can be executed even

mid-block during a program’s execution.

Major topics in this chapter include:

Topic:

On page:

Interrupt request considerations

29-4

Interrupt types

29-5

The interrupt program

29-8

Interrupts are enabled or disabled on the control by two modal M-codes.
These M-codes are determined in AMP by the system installer. This

manual assumes the following values for these M-codes (these are 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) an interrupt signal is ignored.

The format for these M-codes is:

M96L__P__;

M97L__;

Where :

Selects:

L

the type of interrupt and the signal that will call the interrupt. L ranges from 0 - 3.

P

the interrupt program. P is followed by a 5-digit non-decimal program name.

29.0

Chapter Overview

29.1

Enabling and Disabling

Interrupts (M96/M97)

Advertising