M Functions For Subroutine Calls; Macro Call Via M Function - Siemens Sinumerik 840D sl Programming Manual

Iso milling
Hide thumbs Also See for Sinumerik 840D sl:
Table of Contents

Advertisement

3.5.5

M functions for subroutine calls

Table 3- 13
M function
M98
M99
In the ISO mode, the spindle is switched to the axis mode with M29.
3.5.6

Macro call via M function

Via M numbers, one can call a subroutine (macro) similar to G65.
The configuration of a maximum of 10 M functions replacements is undertaken via machine
data 10814 $MN_EXTERN_M_NO_MAC_CYCLE and machine data 10815
$MN_EXTERN_M_NO_MAC_CYCLE_NAME.
Programming takes place identical to G65. Repetitions can be programmed with the L
address.
Restrictions
Only one M function replacement (or only one subroutine call) can be executed per part
program line. Conflicts with other subroutine calls are signaled by alarm 12722. There is no
further M function replacement in the replaced subroutine.
Otherwise, the same restrictions are valid as in G65.
Conflicts with pre-defined and other defined M numbers are rejected with an alarm.
Configuration example
Call of subroutine M101_MAKRO via the M101 M function:
$MN_EXTERN_M_NO_MAC_CYCLE[0] = 101
$MN_EXTERN_M_NO_MAC_CYCLE_NAME[0] = "M101_MAKRO"
Call of subroutine M6_MAKRO via the M6 M function:
$MN_EXTERN_M_NO_MAC_CYCLE[1] = 6
$MN_EXTERN_M_NO_MAC_CYCLE_NAME[1] = "M6_MAKRO"
Programming example for tool change with M function:
PROC MAIN
...
N10
...
N90
ISO Milling
Programming Manual, 06/09, 6FC5398-7BP10-1BA0
M functions for subroutine calls
Function
Subprogram call
Subprogram end
M6 X10 V20
M30
Motion commands
3.5 S-, T-, M- and B functions
;Call of M6_MAKRO program
67

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840di slSinumerik 828dSinumerik 802d sl

Table of Contents