Creating An Interrupt Routine; Assign And Start Interrupt Routine (Setint, Prio, Blsync) - Siemens SINUMERIK 840D sl Programming Manual

Nc programming
Hide thumbs Also See for SINUMERIK 840D sl:
Table of Contents

Advertisement

Work preparation
3.3 Interrupt routine (ASUB)
3.3.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
Saving modal G commands (SAVE)
The interrupt routine can be designated by defining with SAVE.
The SAVE attribute means that the active modal G commands are saved before calling the
interrupt routine and are reactivated after the end of the interrupt routine (see " Subprograms
with SAVE mechanism (SAVE) (Page 500) ").
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 statements can be programmed within the interrupt routine (see "Assign and start
interrupt routine (SETINT)" (Page 540)) therefore activating additional interrupt routines. They
are triggered via the input.
3.3.3

Assign and start interrupt routine (SETINT, PRIO, BLSYNC)

The control has several fast inputs (inputs 1 ... 8), which initiate an interrupt (1 ... 8). Each
interrupt can be assigned a priority and an interrupt routine using the SETINT command. If the
interrupt is initiated by setting the fast input, then processing in the channel is interrupted and
the interrupt routine started.
Interrupt priority
If, in a part program, several inputs are assigned interrupts, then the interrupts must be
assigned different priorities.
540
Comment
; Program name "ABHEB_Z"
; The NC blocks then follow:
; Finally, end the program and return to the main program.
Programming Manual, 12/2019, 6FC5398-2EP40-0BA0
NC programming

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840de sl

Table of Contents