Detailed Description
2.11 Subroutine call with M, T, and D functions
Mode Group, Channel, Program Operation, Reset Response (K1)
2-150 Function Manual, 08/2005 Edition, 6FC5397-0BP10-0BA0
MD10719 Bit0 Transfer to the replacement subroutine
0 D or DL number is transferred to the cycle via a system variable
(default value)
1 D or DL number is calculated directly in the block. This function is active only if the
tool change has been configured with M function, otherwise the D or DL values are
always transferred. *
*Tool change with M function is configured with
MD22550 $MC_TOOL_CHANGE_MODE = 1.
Example of T function replacement for tool change
Behavior same as before:
Tool change with M6 not active:
MD22550 $MC_TOOL_CHANGE_MODE = 0
MD10719 $MN_T_NO_FCT_CYCLE_MODE = 0
MD10717 $MN_T_NO_FCT_CYCLE_NAME = "MY_T_CYCLE" ; T replacement cycle
N110 D1 ;
N120 G90 G0 X100 Y100 Z50 ; D1 is active
N130 D2 X110 Z0 T5 ; D1 remains active, programmed D2 is provided to
the T replacement cycle as a variable
A comprehensive example for M/T function replacement with tool change including the
associated replacement subroutines can be found at the end of the next section.
2.11.3.2 M function replacement for tool change
Calling a tool change program with M function
The following machine data are used to configure M function replacement for calling the tool
change program:
• MD10715 $MN_M_NO_FCT_CYCLE (M function to be replaced by a subroutine)
• MD10716 $MN_M_NO_FCT_CYCLE_NAME (name of subroutine for M function)
• MD10718 $MN_M_NO_FCT_CYCLE_PAR (M function replacement with parameters)
The information required for the tool offset or tool offset selection is passed to the subroutine
via a system variable.