Macro Technique (Define - Siemens SINUMERIK 840D sl Programming Manual

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

Advertisement

Note
ShopMill/ShopTurn programs
The contour descriptions added at the file end mean the ShopMill and ShopTurn programs
must be stored completely in the read-only memory.
A separate reload memory is required for external subprograms executed in parallel.
Reset / end of program / power On
Reset and power ON cause external subprogram calls to be interrupted and the associated
load memory to be deleted.
A subprogram selected for "Execution from external source" remains selected for "Execution
from external source" after a reset / end of program. A power ON deletes the selection.
References
Further information on "Execution from external source" can be found in:
Function Manual, Basic Functions, Mode Group, Channel, Program Operation, Reset
Behavior (K1)
1.25
Macro technique (DEFINE ... AS)
NOTICE
Complicated programming
Use of macros can significantly alter the control's programming language. Macro
technology may only be used with great care.
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 subprogram 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.
Application
Statement sequences that are repeated are only programmed once as macro in a dedicated
macro block (macro file) or once at the beginning of the program. The macro can then be
called in any main program or subprogram and executed.
Job Planning
Programming Manual, 03/2013, 6FC5398-2BP40-3BA1
Flexible NC programming
1.25 Macro technique (DEFINE ... AS)
205

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 828dSinumerik 840de sl

Table of Contents