Macro Call Via G Function - Siemens Sinumerik 840D sl Programming Manual

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

Advertisement

Additional functions
4.7 Macro programs
4.7.3

Macro call via G function

Macro call
A macro can be called with a G number analogous to G65.
The replacement of 50 G functions can be configured via machine data:
10816 $MN_EXTERN_G_NO_MAC_CYCLE and
10817 $MN_EXTERN_G_NO_MAC_CYCLE_NAME.
The parameters programmed in the block are stored in the $C_Variables. The number of
macro repetitions is programmed with Address L. The number of the programmed G macros
is stored in the variable $C_G. All the other G functions programmed in the block are treated
as normal G functions. The programming sequence of the addresses and G functions in the
block is random, and it does not have any effect on the functionality.
Further information about the parameters programmed in this block is available in Chapter
"Macro Program Call (G65, G66, G67)".
Restrictions
● The macro call with a G function can be executed only in the ISO mode (G290).
● Only one G function can be replaced per part program line (or in general, only one
● No other G or M macro or M subroutine can be called if a G macro is active. In this case,
● Otherwise the same restrictions are applicable as for G65.
Configuration examples
Calling the subroutine G21_MAKRO via G function G21
$MN_EXTERN_G_NO_MAC_CYCLE[0] = 21
$MN_EXTERN_G_NO_MAC_CYCLE_NAME[0] = "G21_MAKRO"
$MN_EXTERN_G_NO_MAC_CYCLE[1] = 123
$MN_EXTERN_G_NO_MAC_CYCLE_NAME[1] = "G123_MAKRO"
$MN_EXTERN_G_NO_MAC_CYCLE[2] = 421
$MN_EXTERN_G_NO_MAC_CYCLE_NAME[2] = "G123_MAKRO"
132
subroutine call). If there are possible conflicts with other subroutine calls, e.g. if a modal
subroutine is active, the system outputs Alarm 12722 "Several ISO_M/T macro- or cycle
calls in block".
M macros or M subroutines are executed as M functions. G macros are executed as G
functions, provided a corresponding G function exists; otherwise Alarm 12470 "Unknown
G function" is output.
Programming Manual, 06/09, 6FC5398-7BP10-1BA0
ISO Milling

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840di slSinumerik 828dSinumerik 802d sl

Table of Contents