K1: Mode group, channel, program operation, reset response
9.10 Asynchronous subroutines (ASUBs), interrupt routines
Basic Functions
Function Manual, 09/2011, 6FC5397-0BP40-2BA0
601
9.10.3
Programming
Assignment Interrupt signal ↔ part program
The assignment interrupt signal ↔ part program is done with the command
SETINT
.
Example
Together with
SETINT
additionally the following commands can be programmed:
•
LIFTFAST
When the interrupt signal arrives, a "Fast retraction of the tool from the contour" is executed before the
interrupt routine starts. The motion direction for the fast retraction is specified by the program instruction
ALF
.
•
BLSYNC
Upon receiving the interrupt signal, the current program block is processed and only then is the interrupt
routine started.
Priorities
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>
There are priorities from 1 to 128. Priority 1 corresponds to the highest priority.
Example
The interrupt routines are executed in the sequence of the priority values if the inputs become available
simultaneously (are energized simultaneously): First "ABHEBEN_Z", then "ABHEBEN_X".
Program code
Comment
...
N20 SETINT(3) ABHEBEN_Z
;
If input 3 switches, then interrupt routine
"ABHEB_Z" should start.
...
Note
The assignment interrupt signal ↔ part program is cleared when the following happens:
• Channel in Reset state
•
CLRINT
instruction in part program
Program code
Comment
...
N20 SETINT(3) PRIO=2 ABHEBEN_Z
;
If input 3 switches, then interrupt routine
"ABHEB_Z" should start.
N30 SETINT(2) PRIO=2 ABHEBEN_X
;
If input 2 switches, then interrupt routine
"ABHEB_X" should start.
...
Содержание SINUMERIK 828D Turning
Страница 34: ...Basic Functions 34 Function Manual 09 2011 6FC5397 0BP40 2BA0 ...
Страница 146: ...A3 Axis Monitoring Protection Zones 2 6 Data lists Basic Functions 146 Function Manual 09 2011 6FC5397 0BP40 2BA0 ...
Страница 328: ...F1 Travel to fixed stop 6 5 Data lists Basic Functions 328 Function Manual 09 2011 6FC5397 0BP40 2BA0 ...
Страница 816: ...K2 Axis Types Coordinate Systems Frames 10 9 Data lists Basic Functions 816 Function Manual 09 2011 6FC5397 0BP40 2BA0 ...
Страница 1198: ...P4 PLC for SINUMERIK 828D 14 6 Function interface Basic Functions 1198 Function Manual 09 2011 6FC5397 0BP40 2BA0 ...
Страница 1752: ...Appendix 20 2 Overview Basic Functions 1752 Function Manual 09 2011 6FC5397 0BP40 2BA0 ...
Страница 1774: ...Glossary Basic Functions 1774 Function Manual 09 2011 6FC5397 0BP40 2BA0 ...