If you use the "CNC user memory extended" software option, the subprogram can be stored on
the system CF card in a program memory configured for EES.
Without these two software option, the subprogram must always be stored in the NCK work
memory (in a separate "XYZ" directory or in the "Subprograms" directory). If you still want to call
a subprogram located on another drive, you can use G code command "EXTCALL".
Program header
Please note that when a subprogram is called, the settings in the program header of the
subprogram are evaluated. 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.
Procedure
1.
Create a ShopTurn or G code program that you would like 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 subpro‐
gram.
3.
Press the "Various" and "Subprogram" softkeys.
4.
Enter the path of the subprogram if the desired subprogram is not stored
in the same directory as the main program.
5.
Enter the name of the subprogram that you want to insert.
You only need to enter the file extension (*.mpf or *.spf) if the subprogram
does not have the file extension specified for the directory in which the
subprogram is stored.
6.
Press the "Accept" softkey.
The subprogram call is inserted in the main program.
Parameter
Description
Path/workpiece
Path of the subprogram if the desired subprogram is not stored in the same directory
as the main program.
Program name
Name of the subprogram that is to be inserted.
Programming example
N10 T1 D1
;Load tool
N11 M6
N20 G54 G710
;Select work offset
Programming technology functions (cycles)
10.6 Further cycles and functions
Turning
622
Operating Manual, 06/2019, A5E44903486B AB