2
Subprograms, Macros 12.98
2.13 Macros
2
840D
NCU 571
840D
NCU 572
NCU 573
810D 840Di
ï›™
Siemens AG 2000. All rights reserved
2-118
SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA)
−
04.00 Edition
Display example for both cycles
Display screen for cycle
MY_CYCLE_1
Parameter 2 of the c
cle
Inte
er value
Character parameter
Subpro
rams
100
1
Display screen for cycle
SPECIAL CYCLE
Total len
th
T
pe of machinin
100
1
2.13 Macros
What is a macro?
A macro is a sequence of individual instructions
which have together been assigned a name of their
own. G, M and H functions or L subprogram names
can also be used as macros.
When a macro is called during a program run, the
instructions programmed under the program name
are executed one after the other.
Use of macros
Sequences of instructions that recurr are only
programmed once as a macro in a separate macro
block and once at the beginning of the program.
The macro can then be called in any main program
or subprogram and executed.