Siemens SINUMERIK 840Di Function Manual page 687

Basic machine
Hide thumbs Also See for SINUMERIK 840Di:
Table of Contents

Advertisement

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.
• Programming the address T in the M function subroutine to be replaced does not result in
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
N120 T[$C_TE] = $C_T
N130 ENDIF
N140 M[$C_ME] = 6
N150 IF $C_D_PROG == TRUE
N160 D = $C_D
Mode Group, Channel, Program Operation, Reset Response (K1)
Function Manual, 08/2005 Edition, 6FC5397-0BP10-0BA0
Instead, the T value is made available to the M function replacement via the appropriate
system variable $C_T...
another replacement.
2.11 Subroutine call with M, T, and D functions
; Scan whether address T has been programmed
; Execute T selection
; Execute tool change
; Scan whether address D has been programmed
; Execute D selection
Detailed Description
2-151

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents