Subroutines, Macros
2.15 Subroutine call with M, T and D functions
Job planning
Programming Manual, 03/2006 Edition, 6FC5398-2BP10-1BA0
2-31
2.15 2.15 Subroutine call with M, T and D functions
Function
T, M and D functions can be replaced with a subroutine call by making the appropriate
machine data settings. This method can be used, for example, to call the tool change
routine. During block search with calculation and SERUPRO, subroutine calls with M, T and
D functions are processed in the same way as standard subroutine calls.
Example: tool change with M6
M function M6 is replaced by tool change routine TC_UP_M6.
N10 PROC ROUGHING3
N20 G1 F1000
N30 X=... Y=... Z=...
N40 T1234 M6 ; ; Call TC_UP_M6
M30
Associated subroutine TC_UP_M6:
N110 PROC TC_UP_M6
...
N130 G53 D0 G0 X=... Y=... Z=... ; ; Approach tool change point
N140 M6 ; ; Execute tool change
...
N190 M17
For further information about "Subroutine calls using M, T and D functions" see
/FB1/ Function Manual, Basic Functions; BAG, Channel, Program Operation Mode (K1).