2
Subprograms, Macros 12.98
2.1 Usin
sub
ro
rams
2
840D
NCU 571
840D
NCU 572
NCU 573
FM-NC 810D 840Di
ï›™
Siemens AG 2000. All rights reserved
2-92
SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA)
−
04.00 Edition
2.1 Using subprograms
What is a subprogram?
In principle, a subprogram has the same structure as
a part program. It consists of NC blocks with
traverse commands and switching commands.
In principle, there is no difference between a main
program and a subprogram. The subprogram
contains either machining cycles or machining
sections that must run more than once.
Main program
Subprogram
Use of subprograms
Machining sequences that recur are only
programmed once in a subprogram. For example,
certain contour shapes that occur more than once or
machining cycles.
This subprogram can be called and executed in any
main program.
Structure of the subprogram
The structure of a subprogram is identical to that of
the main program.
In a subprogram it is also possible to program a
program header with parameter definitions.
Subpro
ram