EasyManuals Logo
Home>Siemens>Control Unit>SINUMERIK 810D

Siemens SINUMERIK 810D Programming Manual

Siemens SINUMERIK 810D
687 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
Page #125 background imageLoading...
Page #125 background image
Subroutines, Macros
2.19 Macro technique (DEFINE...AS)
Job planning
Programming Manual, 03/2006 Edition, 6FC5398-2BP10-1BA0
2-41
2.19 2.19 Macro technique (DEFINE...AS)
Function
A macro is a sequence of individual statements, which have together been assigned a name
of their own. G, M and H functions or L subroutine names can also be used as macros.
When a macro is called during a program run, the statements programmed under the
program name are executed one after the other.
Use of macros
Sequences of statements that recur are only programmed once as a macro in a separate
macro module and once at the beginning of the program. The macro can then be called in
any main program or subroutine and executed.
Programming
Macros are identified with the keyword DEFINE...AS.
The macro definition is as follows:
DEFINE NAME AS <statement>
Example:
Macro definition:
DEFINE LINE AS G1 G94 F300
Call in the NC program:
N20 LINE X10 Y20
Activate macro
The macro is active when it is loaded into the NC ("Load" soft key).
Parameters
Caution
Keywords and reserved names must not be redefined with macros.
Use of macros can significantly alter the control's programming language! Therefore,
exercise caution when using macros.
DEFINE Define macro
NAME This is the name of the macro
AS STRING macro definition
Statement Programming statements, e.g., G, M, H and L functions
With macros you can define any identifiers, G, M, H functions and L program names.
Two-digit H and L functions can be programmed.

Table of Contents

Other manuals for Siemens SINUMERIK 810D

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Siemens SINUMERIK 810D and is the answer not in the manual?

Siemens SINUMERIK 810D Specifications

General IconGeneral
BrandSiemens
ModelSINUMERIK 810D
CategoryControl Unit
LanguageEnglish

Related product manuals