9.17.2.5 Example: Replacement of a T and D functionThe functions T and D are replaced by calling the subprogram "D_T_SUB_PROG". Thefollowing should also be true for the example:● The tool change is realized with address T.● The subprogram is called at the start of the block.● The tool management is not active.● Axis B is an indexing axis with Hirth gearing.ParameterizationMachine data MeaningMD11717 $MN_D_NO_FCT_CYCLE_NAME = "D_T_SUB_PROG" Replacement subpro‐gramfor D functionMD10717 $MN_T_NO_FCT_CYCLE_NAME = "D_T_SUB_PROG" Replacement subpro‐gramfor M functionMD10719 $MN_T_NO_FCT_CYCLE_MODE = 'H2' Call at block startMD22550 $MC_TOOL_CHANGE_MODE = 0 Tool change with TfunctionMain programProgramming CommentPROC MAIN... ;N10 G01 F1000 X10 T1=5 D1 ;;T and D function replaced by calling"D_T_SUB_PROG" at start of block... ;N90 M30Subprogram "D_T_SUB_PROG"Programming CommentN1000 PROC D_T_SUB_PROG DISPLOF SBLOFN4100 IF $C_T_PROG==TRUE ; IF address T is programmedN4120 POS[B]=CAC($C_T) ; Approach the indexing positionN4130 T[$C_TE]=$C_T ; Select tool (T selection)N4140 ENDIF ; ENDIFN4300 IF $C_T_PROG==TRUE ; IF address D is programmedN4320 D=$C_D ; Select offset (D selection)K1: Mode group, channel, program operation, reset response9.17 Replacing functions by subprogramsBasic FunctionsFunction Manual, 01/2015, 6FC5397-0BP40-5BA2 627