Siemens SINUMERIK 840D sl Programming Manual page 230

Job planning
Hide thumbs Also See for SINUMERIK 840D sl:
Table of Contents

Advertisement

Flexible NC programming
1.26 Macro technique (DEFINE ... AS)
Significance
DEFINE ... AS :
<macro name>:
<operation>:
Rules when defining a macro
● Any identifier, G, M, H functions and L program names can be defined in a macro.
● Macros can also be defined in the NC program.
● G function macros can only be defined in the macro module globally for the entire control
● H and L functions can be programmed with 2 digits.
● M and G functions can be programmed using 3 digits.
General conditions
Nesting of macros is not possible.
Examples
Example 1: Macro definition at the beginning of the program
Program code
DEFINE LINE AS G1 G94 F300
...
...
N70 LINE X10 Y20
...
230
Keyword combination to define a macro
Macro name
Only identifiers are permissible as macro names.
The macro is called from the NC program using the macro name.
Programming instruction that should be included in the macro.
(modal).
CAUTION
Keywords and reserved names may not be re-defined using macros.
Comments
; Macro definition
; Macro call
Programming Manual, 06/2009, 6FC5398-2BP20-0BA0
Job Planning

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 828dSinumerik 840de sl

Table of Contents