Example: Replacement Of An M Function - Siemens SINUMERIK 840D sl Function Manual

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
System variable
$C_TE
$C_TS_PROG
$C_TS
$C_TCA
$C_DUPLO_PROG
$C_DUPLO
$C_THNO_PROG
$C_THNO
$C_D_PROG
$C_D
$C_DL_PROG
$C_DL
$P_SUB_STAT
$C_MTL_PROG
$C_MTL
9.17.2.4

Example: Replacement of an M function

Example 1
The function M6 is replaced by calling the subprogram "SUB_M6".
The information relevant for a tool change should be transferred using system variables.
Parameterization
Machine data
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 = 2
Main program
Programming
PROC MAIN
624
Meaning
Contains for:
● $C_T_PROG == TRUE
● $C_TS_PROG == TRUE
the value of the address extension of the T function
TRUE, if for the T or TCA replacement, a tool name has been
programmed.
For $C_TS_PROG == TRUE, contains the tool name program‐
med for the T or TCA replacement
TRUE, if the TCA replacement is active
TRUE, if the duplo number of the TCA replacement has been
programmed
For $C_DUPLO_PROG == TRUE, contains the value of the pro‐
grammed duplo number
TRUE, if the toolholder/spindle number of the TCA replacement
has been programmed
For $C_THNO_PROG == TRUE, contains the value of the pro‐
grammed toolholder/spindle number
TRUE, if the D function has been programmed
For $C_D_PROG == TRUE, contains the value of the D function
TRUE, if the DL function was programmed
For $C_DL_PROG == TRUE, contains the value of the DL function
Block-related time when the replacement subprogram is called
TRUE if address MTL has been programmed
For $C_MTL_PROG == TRUE, contains the value of address MTL
Comment
Function Manual, 01/2015, 6FC5397-0BP40-5BA2
Meaning
Tool change with M6
Replacement subpro‐
gram for M6
Information transfer
using system variables
Basic Functions

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 828dSinumerik 840de sl

Table of Contents