Subroutines - Siemens SINUMERIK 828D Operating Manual

Hmi sl milling
Hide thumbs Also See for SINUMERIK 828D:
Table of Contents

Advertisement

Programming technological functions (cycles)
8.4 Further cycles and functions
8.4.4

Subroutines

If you require the same machining steps when programming different workpieces, you can
define these machining steps in a separate subprogram. You can then call this subprogram
in any programs.
Identical machining steps therefore only have to be programmed once.
ShopMill does not differentiate between main programs and subprograms. This means that
you can call a "standard" machining step or G code program as subprogram in another
machining step program.
You can also call another subprogram in the subprogram. The maximum nesting depth is 8
subprograms.
You cannot insert subprograms into linked blocks.
If you want to call machining step program as subprogram, the program must already have
been calculated once (load or simulate program in Machine Auto mode). This is not
necessary for G code subprograms.
The subprogram must always be stored in the NCK work memory (in a separate directory
"XYZ" or in the "ShopMill", "Part programs", "Subprograms" directories).
If you want to call a subprogram located on another drive, you can use G code command
"EXTCALL".
Please note that, when a subprogram is called, ShopMill evaluates the settings in the
program header of the subprogram. 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.
Procedure
314
1.
Generate a ShopMill or G code program that you wish to call as a
subprogram in another program.
2.
Position the cursor in the work plan or in the program view of the main
program on the program block after which you wish to call the
subprogram.
3.
Press the "Various" and "Subroutine" softkeys.
4.
Enter the path of the subprogram if the desired subprogram is not
stored in the same directory as the main program.
The subprogram is thus executed in the position pattern.
6.
Press the "Accept" softkey.
The subprogram call is inserted in the main program.
Operating Manual, 06/2009, 6FC5398-7CP20-0BA0
HMI sl Milling

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840de slSinumerik 840d sl

Table of Contents