Subroutine Call With M, T And D Functions - Siemens SINUMERIK 840D sl Programming Manual

Job planning
Hide thumbs Also See for SINUMERIK 840D sl:
Table of Contents

Advertisement

2.15

Subroutine call with M, T and D functions

2.15
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 ;
M30
Associated subroutine TC_UP_M6:
N110 PROC TC_UP_M6
...
N130 G53 D0 G0 X=... Y=... Z=... ;
N140 M6 ;
...
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).
Job planning
Programming Manual, 03/2006 Edition, 6FC5398-2BP10-1BA0
2.15 Subroutine call with M, T and D functions
; Call TC_UP_M6
; Approach tool change point
; Execute tool change
Subroutines, Macros
2-31

Advertisement

Table of Contents
loading

Table of Contents