Siemens SINUMERIK 840D sl Programming Manual page 206

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

Advertisement

Flexible NC programming
1.25 Macro technique (DEFINE ... AS)
Activation
In order to use the macros of a macro file in the NC program, the macro file must be
downloaded into the NC.
Syntax
Macro definition:
DEFINE <Macro name> AS <statement 1> <statement 2> ...
Call in the NC program:
<macro name>
Meaning
DEFINE ... AS
<macro name>
<statement>
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 two digits.
● M and G functions can be programmed using three digits.
Note
Keywords and reserved names may not be redefined using macros.
Supplementary conditions
Nesting of macros is not possible.
206
:
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 statement that should be included in the macro.
(modal).
Programming Manual, 03/2013, 6FC5398-2BP40-3BA1
Job Planning

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 828dSinumerik 840de sl

Table of Contents