K1: Mode group, channel, program operation, reset response
9.15 Replacing functions by subprograms
Basic Functions
638
Function Manual, 09/2011, 6FC5397-0BP40-2BA0
• MD10718 $MC_ M_NO_FCT_CYCLE_PAR = <Index>
Programming
Rules for replacing M functions:
• The replacement subprogram is called at the block end
• Within the replacement subprogram, no M functions are replaced
• In an ASUB, the M function is also replaced if the ASUB was started within the replacement subprogram.
M functions that cannot be replaced
The following M functions trigger system functions as pre-defined auxiliary functions and must not be replaced by
a subprogram:
• M0, ... M5
• M17, M30,
• M19
• M40, ... M45
• M98, M99 (only for MD18800 $MN_MM_EXTERN_LANGUAGE ≠ 0)
User-specific M functions parameterized via machine data must also not be replaced by a subprogram as they
also trigger system functions.
Note
For an M function replacement with transfer of information via system variable, the
address extension and function value of the M function must be programmed as constant
values.
Permissible programming:
•
M<function value>
•
M=<function value>
•
M[<address extension>]=<function value>
Illegal programming:
•
M=<variable1>
•
M[<variable2>]=<variable1>
Machine data
Meaning
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