EasyManua.ls Logo

Siemens SINUMERIK 802D sl - Macro Call Via G Function

Siemens SINUMERIK 802D sl
251 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Enhanced Level Commands
4.10 Macroprograms
04.07
4-161
© Siemens AG 2007 All rights reserved
SINUMERIK 802D sl/840D/840D sl/840Di/840Di sl/810D ISO Milling (PGM) -- 04.07 Edition
4.10.3 Macro Call via G Function
Analogous to G65, a macro can be called up via a G number.
50 G function replacements ca be configured by means of the machine data
$MN_EXTERN_G_NO_MAC_CYCLE and
$MN_EXTERN_G_NO_MAC_CYCLE_NAME.
The address A-- F, H--K, M and P--Z can be use as the parameter. Only the integer
value can be used for the address P and L. Address L is for the number of repition.
Please refer to the chapter 4.10.2 ”Macroprogram call (G65, G66, G67)” for the
parameter programmed in the block.
The number of the programmed G macro is stored in the variable $C_G. All further
G functions programmed in the block are treated like ordinary G functions and per-
formed before the execution of macro program. The programming sequence of the
addresses and G functions in the block is not fixed and does not influence the func-
tionality.
Restrictions
S The G function replacement can be execute in ISO mode (G290).
S The address O with G function replacement is signaled with an alarm.
S One single G/M function replacement (or generally only one subroutine call) can
be executed per parts program line. Conflicts with other subroutine calls, e.g.
when a modal subroutine call is active, are s ignaled with alarm 12722.
S The G function replacement with end of subprogram (M99) or end of program
(M02, M30) is denied by the alarm.
S If a G macro is active, no other G/M macro or M subroutine is called up. In this
case, M macros/subroutines are executed as M functions. G macros are execu-
ted as G function, if a corresponding G function exists; otherwise, alarm 12470
”G function unknown” is output.
S In all other respects, the same restriction as for G65 are valid.
Configuration examples
Call of the MAKRO_G21 subroutine by the G21 function as well as G123.
$MN_EXTERN_G_NO_MAC_CYCLE[0] = 21
$MN_EXTERN_G_NO_MAC_CYCLE_NAME[0] = ”MAKRO_G21”
$MN_EXTERN_G_NO_MAC_CYCLE[1] = 123
$MN_EXTERN_G_NO_MAC_CYCLE_NAME[1] = ”MAKRO_G123”
$MN_EXTERN_G_NO_MAC_CYCLE[2] = 421
$MN_EXTERN_G_NO_MAC_CYCLE_NAME[2] = ”MAKRO_G123”

Table of Contents

Other manuals for Siemens SINUMERIK 802D sl

Related product manuals