EasyManua.ls Logo

Siemens SINUMERIK 840DE SL - Page 687

Siemens SINUMERIK 840DE SL
2050 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Detailed Description
2.11 Subroutine call with M, T, and D functions
Mode Group, Channel, Program Operation, Reset Response (K1)
Function Manual, 08/2005 Edition, 6FC5397-0BP10-0BA0
2-151
Programming the M function replacement with parameter transfer
The address extension and function value of the M function must be explicitly, i.e.,
constantly, programmed for M function replacements with parameter transfer. An indirection
definition via variables is not allowed.
Permissible programming:
M< function value >
M = < function value >
M[<address extension>] = <function value>
Illegal programming:
M = <variable1>
M[<variable2>] = <variable1>
Boundary conditions
M and T functions for tool change in a block
If, in addition to the M function replacement with parameter transfer, a T function
replacement was configured, the following behavior is applicable in case of a conflict, i.e.,
T and M function for tool change are in one block:
The T function replacement does not take place.
Instead, the T value is made available to the M function replacement via the appropriate
system variable $C_T...
Programming the address T in the M function subroutine to be replaced does not result in
another replacement.
Configuration example of call of subroutine SUB_M6 through M6 with parameter transfer
MD10715 $MN_M_NO_FCT_CYCLE[2] = 6
MD10716 $MN_M_NO_FCT_CYCLE_NAME[2] = "SUB_M6"
MD10718 $MN_M_NO_FCT_CYCLE_PAR = 6
Program example of tool change with M function replacement
PROC MAIN
...
N10 T1 D1 M6
...
N90 M30
PROC SUB_M6
N110 IF $C_T_PROG == TRUE ; Scan whether address T has been programmed
N120 T[$C_TE] = $C_T ; Execute T selection
N130 ENDIF
N140 M[$C_ME] = 6 ; Execute tool change
N150 IF $C_D_PROG == TRUE ; Scan whether address D has been programmed
N160 D = $C_D ; Execute D selection

Table of Contents

Other manuals for Siemens SINUMERIK 840DE SL

Related product manuals