2
12.98 Subprograms, Macros
2.13 Macros
2
840D
NCU 571
840D
NCU 572
NCU 573
810D 840Di
ï›™
Siemens AG 2000. All rights reserved
SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA)
−
04.00 Edition
2-119
Programming:
Macros are identified with the vocabulary word
DEFINE...AS
.
The macro definition is as follows:
DEFINE NAME AS
<Instruction>
Example:
Macro definition:
DEFINE LINE AS G1 G94 F300
Call in the NC program:
N20 LINE X10 Y20
Activate
macro
•
up to
SW
4
Macros are active after control POWER ON.
•
SW
5
and higher
The macro is active when it is loaded into the NC
("Load" softkey).
Three-digit M/G function (as of SW 5)
•
up to
SW
4
After a three-digit M function is programmed,
alarm 12530 is issued.
•
SW
5
and higher
Supports programming of three-digit M and G
functions.
Example:
N20 DEFINE M100 AS M6
N80 DEFINE M999 AS M6
Additional notes
Nesting of macros is not possible.
Two-digit H and L functions can be programmed.