Download Print this page

Siemens Sinumerik 840D Operating Turning page 551

Hide thumbs Also See for Sinumerik 840D:

Advertisement

Various
5.6 Subprograms
If you require the same machining steps in the programming of different
workpieces, you can define these machining steps in a separate routine.
You can then call this subroutine in any program.
Identical machining steps therefore only have to be programmed once.
ShopTurn does not differentiate between main program and subprogram.
This means that you can call a "standard" sequential program or G code
program as subprograms in another sequential program.
In this subprogram, you can also call another subprogram.
The maximum nesting depth is 8 subroutines.
You cannot insert subroutines among blocks chained by the control.
If you want to call a sequential ShopTurn program as a subroutine, the
program must already have been calculated once (load or simulate
program in "AUTO" operating mode). This is not necessary for G code
subroutines.
The subroutine must always be stored in the NCK main memory (in a
separate directory "XYZ" or in the "ShopTurn", "Part programs",
"Subprograms" directories).
If you want to call a subprogram located on another drive, you can use the
G code command "EXTCALL".
Note:
Please note that, when a subprogram is called, ShopTurn evaluates the
settings in the program header of the subroutine. These settings also
remain active even after the subprogram has ended.
If you wish to activate the settings from the program header for the main
program again, you can make the settings again in the main program after
calling the subprogram.
5.6.1 Selecting the function "Subprogram"
By pressing the VSK 3 "Subprogram" the input mask
for selecting a subprogram opens.
840D/828D SINUMERIK Operate
Section 5
Notes

Advertisement

loading

This manual is also suitable for:

Sinumerik 828d