K1: Mode group, channel, program operation, reset response
9.10 Asynchronous subroutines (ASUBs), interrupt routines
Basic Functions
596 Function Manual, 09/2011, 6FC5397-0BP40-2BA0
9.10.2 Parameter assignment
Effect of mode group signals
The effect of the mode group signals (mode group reset, mode group Stop axes plus spindle, mode change
disable, ...) on channels of mode group, which are currently processing the interrupt routines, is set in the
machine data:
MD11600 $MN_BAG_MASK
MD11600 also controls, whether the internal program execution mode is imported only for the channel, in which
the interrupt routine has been activated, or to all channels in the mode group.
If, via MD 11600, the channel in which the interrupt is running has left the mode group, the mode group signals
Mode Group RESET, Mode Group STOP, ... have noeffect on this channel. In this way the interrupt routines can
run without being disturbed by the mode group signals.
Ignore stop conditions
In the default setting an ASUB start is prevented under the following conditions:
• Stop by means of Stop key, M0, M01
• Not all axes are referenced yet
• read-in disable is active (DB21,...DBX6.1=1)
Via the following machine data the ASUP Start can also be enabled for these conditions:
MD11602 $MN_ASUP_START_MASK (ignore stop conditions for ASUB)
Bit Value Description
0 0 Mode group signals are applicable.
1 Mode group signals are not applicable.
Bit Value Description
1 0 The mode switchover is done to all channels in the mode group.
1 An internal mode switchover takes place only in the channel, in which the interrupt
routine was activated (possible only if bit 0 is set to "1").
Bit Value Description
0 Stop reason: Stop key, M0 or M1
0 Stop reason prevented ASUB start.
1 An ASUB is started immediately, if the NCK is in the reset status or in the JOG
mode.
Tip:
Without this bit setting, no ASUB can be started in the reset status /JOG mode.
Note:
• This bit is set implicitly, if the machine data
MD20108$MC_PROG_EVENT_MASK in a channel deviates from zero!
• This bit is set implicitly, if in the machine data
MD11450$MN_SEARCH_RUN_MODE the bit 1 is set!