Flexible NC programming
1.14 Interrupt routine (ASUB)
Job planning
114 Programming Manual, 07/2010, 6FC5398-2BP40-0BA0
1.14.3 Assign and start interrupt routine (SETINT, PRIO, BLSYNC)
Function
The control has signals (inputs 1...8) that initiate that the program being executed is
interrupted and a corresponding interrupt routine can be started.
The assignment as to which input starts which program is realized in the part program using
the
SETINT command.
If several
SETINT instructions are in the part program and therefore several signals can be
simultaneously received, the assigned interrupt routines must be allocated priorities that
define the sequence in which the interrupt routines are executed:
PRIO=<value>
If new signals are received while interrupt routines are being executed, the current interrupt
routines are interrupted by routines with higher priority.
Syntax
SETINT(<n>) PRIO=<value> <NAME>
SETINT(<n>) PRIO=<value> <NAME> BLSYNC
SETINT(<n>) PRIO=<value> <NAME> LIFTFAST
Significance
SETINT(<n>): Command: Assign input <n> to an interrupt routine. The assigned
interrupt routine starts when input <n> switches.
Note:
If an input that is already assigned is allocated to a new routine, then the
old assignment is automatically cancelled.
Parameters: Input number
Type: INT
<n>:
Range of values: 1 ... 8
PRIO= : Command: Defining the priority
Priority value
Type: INT
<value>:
Range of values: 1 ... 128
Priority 1 corresponds to the highest priority.
<NAME>: Name of the subprogram (interrupt routine) that should be executed.
BLSYNC: If the SETINT operation is programmed together with BLSYNC, when the
interrupt signal is received the program block which is in progress will
continue to be processed; only once this is complete will the interrupt
routine be launched.
LIFTFAST: If the SETINT operation is programmed together with LIFTFAST, when the
interrupt signal is received a "fast retraction of the tool from the contour"
will be performed before the start of the interrupt routine (see "
Fast
retraction from the contour (SETINT LIFTFAST, ALF) (Page
118)").