Flexible NC programming
1.14 Interrupt routine (ASUB)
Job planning
116 Programming Manual, 07/2010, 6FC5398-2BP40-0BA0
1.14.4 Deactivating/reactivating the assignment of an interrupt routine (DISABLE,
ENABLE)
Function
A SETINT instruction can be deactivated with DISABLE and reactivated with ENABLE without
losing the input → interrupt routine assignment.
Syntax
DISABLE(<n>)
ENABLE(<n>)
Significance
DISABLE(<n>): Command: Deactivating the interrupt routine assignment of input <n>
ENABLE(<n>): Command: Reactivating the interrupt routine assignment of input <n>
Parameter: Input number
Type: INT
<n>:
Range of values: 1 ... 8
Example
Program code Comments
...
N20 SETINT(3) PRIO=1 ABHEB_Z ; If input 3 switches, then interrupt routine
"ABHEB_Z" should start.
...
N90 DISABLE(3) ; The SETINT instruction from N20 is
deactivated.
...
N130 ENABLE(3) ; The SETINT instruction from N20 is
reactivated.
...