Creating An Interrupt Routine - Siemens SINUMERIK 840D sl Programming Manual

Job planning
Hide thumbs Also See for SINUMERIK 840D sl:
Table of Contents

Advertisement

When the interrupt routine has finished being executed and the machine is ready to continue
operation, the control jumps back to the main program and continues machining at the point
of interruption – depending on the REPOS command (see "Repositioning at contour
(Page 553) ").
If a REPOS command has not been programmed in the subprogram, then the control goes
to the end point of the block that follows the interrupted block.
References
Function Manual, Basic Functions; BAG, Channel, Program Operation, Reset Response
(K1),Chapter: "Asynchronous subprograms (ASUBs), interrupt routines"
1.14.2

Creating an interrupt routine

Create interrupt routine as subprogram
The interrupt routine is identified as a subprogram in the definition.
Example:
Program code
PROC LIFT_Z
N10 ...
...
N50 M17
Save modal G functions (SAVE)
The interrupt routine can be designated by defining with SAVE.
The SAVE attribute means that the active modal G functions saved before calling the
interrupt routine and are re-activated after the end of the interrupt routine (see
"Subprograms with SAVE mechanism (SAVE) (Page 178) ").
This means that it is possible to resume processing at the interruption point after the interrupt
routine has been completed.
Job Planning
Programming Manual, 06/2009, 6FC5398-2BP20-0BA0
CAUTION
Comments
; Program name "ABHEB_Z"
; The NC blocks then follow:
; At the end, the end of the program and return to the main
program.
Flexible NC programming
1.14 Interrupt routine (ASUB)
125

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 828dSinumerik 840de sl

Table of Contents