K1: Mode group, channel, program operation, reset response
9.15 Replacing functions by subprograms
Basic Functions
Function Manual, 09/2011, 6FC5397-0BP40-2BA0
641
Example: Replacement of the T function
A detailed example for replacement of the T function can be found in Chapter: "Example: Replacement of an M
function [Page 643]".
9.15.2.3 System variable
General Information
The replacement subprogram is provided with all of the information relevant to the functions programmed in the
block (T or TCA, D or DL, M) via system variables.
Exception
D or DL number is not transferred if:
• MD10719 $MN_T_NO_FCT_CYCLE_MODE, bit0=1
• MD22550 $MC_TOOL_CHANGE_MODE = 1
AND
• D or DL together with T or M function programmed in a block
Parameterization Meaning
MD22550 $MC_TOOL_CHANGE_MODE = 0 Tool change with T function
MD10717 $MN_T_NO_FCT_CYCLE_NAME = "MY_T_CYCLE" Name of the subprogram to
replace the T function
MD10719 $MN_T_NO_FCT_CYCLE_MODE = 0 Call time: End of block
Programming Comment
N110 D1 ; D1
N120 G90 G0 X100 Y100 Z50 ; D1 is active
N130 D2 X110 Z0 T5 ;
;
;
;
;
D1 remains active
The T function is replaced at the end of the
block by
UP call MY_T_CYCLE
D2 is made available to MY_T_CYCLE in a
system variable
CAUTION
The values provided for the replacement subprogram in the system variables are not yet
effective. It is the sole responsibility of the user/machine manufacturer to resolve this by
using the appropriate programming in the replacement subprogram.