Interrupt Program With M96, M97 - Siemens Sinumerik 840D sl Programming Manual

Iso milling
Hide thumbs Also See for Sinumerik 840D sl:
Table of Contents

Advertisement

Additional functions
4.6 Measuring functions
4.6.4

Interrupt program with M96, M97

M96
A subroutine can be defined as an interrupt routine with the M96 P<Program No.>.
The start of this program is triggered by an external signal. To start the interrupt routine, the
1st rapid NC input is used from among the eight inputs available in the Siemens mode.
Another rapid input (1 to 8) can also be selected with MD10818
$MN_EXTER_INTERRUPT_NUM_ASUP.
Format
M96 Pxxxx
M97
M97 and M96 P_ must be alone in the block.
So that on triggering the interrupt, the cover cycle CYCLE396 is called first and it calls the
interrupt program programmed with Pxxxx in the ISO mode. At the end of the cover cycle,
the machine data 10808 $MN_EXTERN_INTERRUPT_BITS_M96, Bit 1 is evaluated and
either positioned on the interruption point with REPOS or continued with the next block.
End of interruption (M97)
The interrupt program is deactivated with M97. Only after the next activation with M96 can
the interrupt routine be started with the external signal.
If the interrupt program programmed with M96 Pxx is to be called directly with the interrupt
signal (without intermediate step with CYCLE396), then machine data 20734
$MC_EXTERN_FUNCTION_MASK, Bit 10 must be set. The subroutine programmed with
Pxx is then called in the Siemens mode during a signal change from 0 -> 1.
The M function numbers for the interrupt function are set through machine data. Machine
data 10804 $MN_EXTERN_M_NO_SET_INT is used to determine the M number for
activating an interrupt routine, machine data 10806 $MN_EXTERN_M_NO_DISABLE_INT is
used to determine the M number for suppressing an interrupt routine.
Only the M functions not reserved for standard M functions can be used. The default of the
M functions is M96 and M97. To activate the function, one must set bit 0 in machine data
10808 $MN_EXTERN_INTERRUPT_BITS_M96. The M functions are not output to the PLC.
The M functions are interpreted as normal auxiliary functions if Bit 0 is not set.
At the end of the interrupt program, one normally traverses to the end position of the part
program block following the interruption block. If the part program is to be processed further
from the interruption point, there must be a REPOS instruction at the end of the interrupt
program, e.g. REPOSA. For this, the interrupt program must be written in the Siemens
mode.
The M function for activating and deactivating an interrupt program must be alone in the
block. The system issues Alarm 12080 (syntax error) if addresses other than "M" and "P" are
programmed in the block.
122
;Activation of program interrupt
;Deactivation of program interrupt
Programming Manual, 06/09, 6FC5398-7BP10-1BA0
ISO Milling

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840di slSinumerik 828dSinumerik 802d sl

Table of Contents