Siemens SINUMERIK 840D sl Function Manual page 626

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

Advertisement

K1: Mode group, channel, program operation, reset response
9.17 Replacing functions by subprograms
Parameterization
Parameterization
MD22550 $MC_TOOL_CHANGE_MODE = 1
MD10717 $MN_T_NO_FCT_CYCLE_NAME = "MY_T_CYCLE"
MD10719 $MN_T_NO_FCT_CYCLE_MODE = 1
Main program
Program code
N310 D1
N320 G90 G0 X100 Y100 Z50
N330 D2 X110 Z0 T5
N340 M6
Example 4
The functions T and M6 are replaced by the subprogram "MY_T_CYCLE".
The parameters are transferred to the subprogram when replacing M6.
If M6 is programmed together with D or DL in the block, the D or the DL number is also
transferred as parameter to the subprogram if no transfer of the D/DL number has been
parameterized:
MD10719 $MN_T_NO_FCT_CYCLE_MODE = 1
Parameterization
Configuration
MD22550 $MC_TOOL_CHANGE_MODE = 1
MD22560 $MC_TOOL_CHANGE_M_CODE = 6
MD10715 $MC_M_NO_FCT_CYCLE[3] = 6
MD10716 $MC_M_NO_FCT_CYCLE_NAME[3] = "MY_T_CYCLE"
MD10717 $MN_T_NO_FCT_CYCLE_NAME = "MY_T_CYCLE"
MD10718 $MN_M_NO_FCT_CYCLE_PAR = 3
MD10719 $MN_T_NO_FCT_CYCLE_MODE = 1
Main program
Program code
N410 D1
N420 G90 G0 X100 Y100 Z50
N330 D2 X110 Z0 T5 M6
626
Comment
; D1 is active.
;
D2 is active and is not transferred as variable
to
;
the replacement subprogram.
; Execute tool change.
Comment
; D1 is active.
; D1 remains active, D2 and T5 are transferred to
the M6 replacement subprogram as variable.
Function Manual, 01/2015, 6FC5397-0BP40-5BA2
Meaning
Tool change prepared with T
function
Replacement subprogram
No transfer of the D/DL number
Meaning
Tool change with M function
M code for tool change
M function to be replaced
Replacement subprogram for
the M function
Replacement subprogram for
the T function
Parameter transfer to the
replacement subprogram for M6
No transfer of the D/DL number
Basic Functions

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 828dSinumerik 840de sl

Table of Contents