Siemens SINUMERIK 840DE sl Commissioning Manual page 100

For cnc shopmill
Hide thumbs Also See for SINUMERIK 840DE sl:
Table of Contents

Advertisement

8 Tool Management
8.6
Tool change cycle
Example
8-100
The example L6.SPF is available for this purpose. The sample file is located
in the directory CYCLES\SC\PROG\TEMPLATES_DEU or
CYCLES\SC\PROG\TEMPLATES_ENG.
This example requires:
S
MD 22550 $MC_TOOL_CHANGE_MODE=1
Tool change via M function.
S
MD 10715 $MN_M_NO_FCT_CYCLE[0]=6
M function (M6) with which the tool change, i.e. the subroutine assigned via
MD 10716 $MN_M_NO_FCT_CYCLE_NAME[0], is called.
S
MD 10716 $MN_M_NO_FCT_CYCLE_NAME[0]="L6"
Name of the subroutine (L6) that must be processed based on the M func-
tion defined in MD 10715.
If the subroutine name must be entered via program or MDA, the name must
be placed in quotes. This does not apply to manual inputs.
S
MD 22560 $MC_TOOL_CHANGE_M_CODE=206
M function (M206) with which the tool change is defined for the tool manage-
ment.
PROC L6 SAVE
;______________________________________________________
;Example of tool change cycle for machine manufacturer
;_______________________________________________________
DEF INT _WZ_IN_SP,_WZ_VOR
DEF REAL _WWP=...
DEF REAL _SPP=...
;
IF (NOT $P_SEARCH)
_WZ_IN_SP=$TC_MPP6[9998,1]
GETSELT(_WZ_VOR)
;
IF (_WZ_IN_SP<>_WZ_VOR)
; Position spindle:
SPOS=_SPP
; Approach tool change position:
SUPA D0 G0 G90 G40 G60 Z=_WWP
ENDIF
ELSE
IF (E_SIM_ACTIVE)
; Approach tool change position:
SUPA D0 G0 G90 G40 G60 Z=_WWP
ENDIF
ENDIF
;
;Load tool: Tool management and PLC
M206
M17
SINUMERIK 840D sl Commissioning Manual CNC: ShopMill – 11/2006 Edition
; Tool change position
; MKS
; Spindle position
; If no block search
; Tool on spindle
; Preselected tool
; If other tool
; If simulation active
© Siemens AG 2006 All Rights Reserved
11/2006

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840d sl

Table of Contents