Subroutines - Siemens SINUMERIK 840D sl Operating Manual

Computerized numerical controllers
Hide thumbs Also See for SINUMERIK 840D sl:
Table of Contents

Advertisement

8.6.4

Subroutines

If you require the same machining steps in the programming of different workpieces, you can
define these machining steps in a separate subprogram. You can then call this subprogram
in any program.
Identical machining steps therefore only have to be programmed once.
ShopTurn does not differentiate between main program and subprograms. This means that
you can call a "standard" machining step or G code program in another machining step
program as subprogram. In the subprogram, you can also call another subprogram. The
maximum nesting depth is 8 subprograms.
Note
You cannot insert subprograms in linked blocks.
If you want to call a machining step program as subprogram, the program must already have
been calculated once (load or simulate program in the "Machine Auto" mode). This is not
necessary for G code subprograms.
The subprogram must always be stored in the NCK main memory (in a separate directory
"XYZ" or in the "ShopTurn", "Part programs", and "Subprograms" directories).
If you want to call a subprogram located on another drive, you can use G code command
"EXTCALL".
Program header
Please note that ShopTurn evaluates the settings from the program header of the
subprogram, excluding the blank settings, when the subprogram is called. These settings
also remain active even after the subprogram has been exited.
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.
Turning
Operating Manual, 02/2012, 6FC5398-8CP40-3BA0
Programming technology functions (cycles)
8.6 Further cycles and functions
493

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 828d turning

Table of Contents