IF(NOT $P_SEARCH) ; if no block search
_WZ_IN_SP=$TC_MPP6[9998,1] ; tool in spindle
GETSELT(_WZ_VOR)
;
; previously selected tool
IF(_WZ_IN_SP<>_WZ_VOR) ; if another tool
SPOS=_SPP ; position spindle
G0
G75 Z=0
WAITS(1)
ENDIF
ELSE
; approach tool change position:
ENDIF
;
; Load tool: Tool management and PLC
M206
M17
;----------------------------------------------------------------
; END
;----------------------------------------------------------------
Tool management
9.8 Application example for milling machine
CNC commissioning
332 Commissioning Manual, 10/2015, 6FC5397-3DP40-5BA3