Detailed Description 
  2.11 Subroutine call with M, T, and D functions 
Mode Group, Channel, Program Operation, Reset Response (K1) 
Function Manual, 08/2005 Edition, 6FC5397-0BP10-0BA0 
2-153 
This causes part program line "N410 G01 F1000 X10 T1=5 D1" to execute the following 
program: 
 
N1000 PROC D_T_SUB_PROG DISPLOF  
 SBLOF 
; Replacement subroutine 
...   
N4100 IF $C_T_PROG == TRUE    Scan whether address T has been 
programmed 
N4110  ;  Replacement for address T with tool no. 
N4120 POS[B] = CAC($C_T)  ;  Move revolver to indexing position 
N4130 T[$C_TE] = $C_T  ;  Select tool (T selection) 
N4140 ENDIF     
  
N4300 IF $C_D_PROG == TRUE  ;  Scan whether address D has been 
programmed 
N4300  ;  Replacement for address D 
N4310 D = $C_D  ;  Select offset (D selection) 
N4320 ENDIF     
  
N4400 IF $C_DL_PROG == TRUE  ;  Scan whether address DL has been 
programmed 
N4430 ENDIF     
N9999 RET     
N410 G01 F1000 X10  ;  Rest of N410 without tool programming 
 
2.11.4  Parameter transfer to the replacement subroutine 
Rules for parameter transfer 
The following basic procedure applies when transferring parameters to the replacement 
cycle: 
•  If on of the replacements indicated above is active, all information required for the tool or 
offset selection (T, D or DL, M function for tool change, address extensions) is forwarded 
to the replacement subroutine. 
Exception: MD10719 $MN_T_NO_FCT_CYCLE_MODE Bit 0 = 1. Here, it is possible to 
configure that the D/DL addresses not be transferred to the replacement subroutine. 
•  Only one of the replacement subroutines indicated above can be executed in a part 
program line. 
If there are multiple replacements of the T or D/DL address and the M function for the call 
of the tool change program, only one of the replacement subroutines is ever active even if 
their names are different. The, as described above, all necessary parameters for the tool 
offset or tool offset selection are made available. If configured accordingly, the subroutine 
is called before and/or after execution of the part program line.