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

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

Advertisement

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 " Save modal G
functions (SAVE) [Page 172] ").
This means that it is possible to resume processing at the interruption point after the interrupt
routine has been completed.
Example:
Program code
PROC LIFT_Z SAVE
N10 ...
...
N50 M17
Assign additional interrupt routines (SETINT)
SETINT instructions can be programmed within the interrupt routine (see Assign and start
interrupt routine (SETINT, PRIO, BLSYNC) [Page 122]) therefore activating additional
interrupt routines. They are triggered via the input.
References
You will find more information on how to create subprograms in Chapter "Subprograms,
Macros".
Job planning
Programming Manual, 02/2011, 6FC5398-2BP40-1BA0
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)
121

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840de slSinumerik 828d

Table of Contents