Miscellaneous Functions; Calling A Subroutine - Siemens SINUMERIK 840D Operation/Programming Manual

Shopmill
Hide thumbs Also See for SINUMERIK 840D:
Table of Contents

Advertisement

3
Programming with ShopMill

3.10 Miscellaneous functions

3.10

Miscellaneous functions

3.10.1 Calling a subroutine

3-296
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 programs.
Identical machining steps therefore only have to be programmed
once.
ShopMill does not differentiate between main program and
subroutine. This means that you can call a "standard" sequential
control or G code program as subroutine in another sequential control
program.
In this subroutine, you can also call another subroutine. The maximum
nesting depth is 8 subroutines.
You cannot not insert subroutines among blocks chained by the
control.
If you want to call a sequential control program as a subroutine, the
program must already have been calculated once (load or simulate
program in Machine Auto mode). This is not necessary for G code
subroutines.
The subroutine must always be stored in the NC main memory (in a
separate directory "XYZ" or in the "ShopMill", "Part programs",
"Subroutines" directories).
If you want to call a subroutine located on another drive, you can use
G code command "EXTCALL".
Example: Calling program "Form25_1.mpf" on the compact flash card
of the PCU 20:
EXTCALL "C:\FORM25_1.MPF"
Please note that, when a subroutine is called, ShopMill evaluates the
settings in the program header of the subroutine. These settings also
remain active even after the subroutine 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 subroutine (see Sec. "Changing program
settings").
SINUMERIK 840D/840Di/810D Operation/Programming ShopMill (BAS) – 10.04 Edition
3
10.04
 Siemens AG, 2004. All rights reserved

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840diSinumerik 810d

Table of Contents