Replacement Of M, T/Tca And D/Dl Functions; Replacement Of M Functions - 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
9.17.2

Replacement of M, T/TCA and D/DL functions

9.17.2.1

Replacement of M functions

General Information
The following conditions are applicable for replacing the M functions:
● Per block only one M function is replaced.
● A block in which an M function is to be replaced, must not contain the following elements:
– M98
– Modal subprogram call
– Subprogram return
– Part program end
● M functions that trigger system functions must not be replaced by a subprogram (see
Section "Non-replaceable M functions").
Parameterization
M function and subprogram
M functions and the replacement subprograms are parameterized in the following machine
data:
● MD10715 $MC_M_NO_FCT_CYCLE[<Index>] = <M function number>
● MD10716 $MC_M_NO_FCT_CYCLE_NAME[<Index>] = "<subprogram name>"
The M function and the corresponding replacement subprogram are connected through the
same index.
Example: M function M101 is replaced by subprogram SUB_M101 and M function M102 by
SUB_M102:
MD10715 $MC_M_NO_FCT_CYCLE[ 0 ]
MD10716 $MC_M_NO_FCT_CYCLE_NAME[ 0 ]
MD10715 $MC_M_NO_FCT_CYCLE[ 1 ]
MD10716 $MC_M_NO_FCT_CYCLE_NAME[ 1 ]
System variable for transferring information
For a freely selectable M function, information regarding the M function that has been replaced
and additional functions (T, TCA, D, DL) for evaluation in the replacement subprogram are
made available via the system variable (see Section "System variable (Page 623)"). The data
contained in the system variables refers to the block in which the M function to be replaced is
programmed.
618
= 101
= "SUB_M101"
= 102
= "SUB_M102"
Function Manual, 01/2015, 6FC5397-0BP40-5BA2
Basic Functions

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 828dSinumerik 840de sl

Table of Contents