Activation
The activation of an interrupt routine is initiated via:
● 0/1 edge of the interrupt signal, triggered by a 0/1 edge at the associated fast NC input
● Call of the "Function call ASUB" (see Section "P3: Basic PLC program for SINUMERIK
840D sl (Page 821)")
● Setting an output via synchronized action which is parameterized on an interrupt via short-
circuit (see "Examples (Page 570)")
References:
Function Manual, Synchronized Actions
Display
The activation of an interrupt routine is shown channel-specifically with the following NC/PLC
interface signal:
DB21, ... DBX378.0 == 1 (ASUB active)
9.10.1.2
Sequence of an interrupt routine in program operation
Decelerating the axes
Upon activation, all machine axes are decelerated to a standstill according to the acceleration
ramp (MD32300 $MA_MAX_AX_ACCEL), and the axis positions are stored.
Reorganization
In addition to decelerating the axes, the previously decoded calculation blocks are calculated
back to the interruption block, i.e. all the variables, frames and G codes are assigned the value
that they would have at the point of interruption if the part program had not been previously
decoded. These values are transferred to the buffer so that they can be called up again when
the interrupt routine is completed.
Exceptions where no reorganization is possible:
● In thread cutting blocks
● With complex geometries (e.g. spline or radius compensation)
Processing of interrupt routine
The interrupt routine is automatically started on completion of reorganization.
The system handles the interrupt routine like a normal part program (nesting depth, etc.)
End of interrupt routine
After the end identifier (M02, M30
traverses by default to the end position programmed in the part program block following the
interruption block.
Basic Functions
Function Manual, 01/2015, 6FC5397-0BP40-5BA2
K1: Mode group, channel, program operation, reset response
9.10 Asynchronous subprograms (ASUBs), interrupt routines
, M17) of the interrupt routine has been processed, the axis
561