Detailed description
2.11 Subroutine call through NC language replacement
Basic logic functions: Mode group, channel, program operation, reset response (K1)
Function Manual, 11/2006, 6FC5397-0BP10-2BA0
177
Boundary conditions
The following boundary conditions are applicable to subroutine calls with M Function:
• Only one function may be replaced for each part program line.
• A subroutine call must not be superimposed on M functions with predetermined
significance.
M functions that cannot be configured
M Functions that trigger system functions as pre-defined auxiliary functions should not be
used to call subroutines. The following M functions have standard predetermined
significance:
M function Remarks
M0 to M5, M17, M30,
M19, M40 to M45
Predefined auxiliary functions
that trigger system functions
M98, M99 with activated external NC language:
MD18800 $MN_MM_EXTERN_LANGUAGE == TRUE
References: /FB1/Function Manual Basic Functions; Auxiliary Function Outputs to PLC (H2)
M functions can be defined for specific tasks using the following machine data. Through this,
they receive a fixed meaning and, therefore, must not be used to call subroutines:
Machine data Specific tasks
MD10714 $MN_M_NO_FCT_EOP M function for spindle active after RESET
MD10804
$MN_EXTERN_CHAN_M_NO_SET_INT
M function for ASUB activation (external mode)
MD10806
$MN_EXTERN_CHAN_M_NO_DISABLE_INT
M function for ASUB deactivation (external mode)
MD10814 $MN_EXTERN_M_NO_MAC_CYCLE Macro call via M function
MD20094
$MC_SPIND_RIGID_TAPPING_M_NR
M function for switchover to controlled axis mode
MD20095
$MC_EXTERN_RIGID_TAPPING_M_NR
M function for switchover to controlled axis mode
(external mode)
MD22254 $MC_AUXFU_ASSOC_M0_VALUE Additional M function for program stop
MD22256 $MC_AUXFU_ASSOC_M1_VALUE Additional M function for conditional stop
MD26008 $MC_NIBBLE_PUNCH_CODE Definition of M functions (for nibble-specific)
MD26012 $MC_PUNCHNIB_ACTIVATION Activation of punching and nibbling functions
Exceptions
The configured M function for tool change:
MD22560 $MC_TOOL_CHANGE_M_CODE (Tool change with M Function).