EasyManuals Logo
Home>Siemens>Control Unit>SINUMERIK 840D

Siemens SINUMERIK 840D Operation/Programming

Siemens SINUMERIK 840D
472 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #296 background imageLoading...
Page #296 background image
3
Programming with ShopMill 10.04
3.10 Miscellaneous functions
3
ï›™ Siemens AG, 2004. All rights reserved
3-296 SINUMERIK 840D/840Di/810D Operation/Programming ShopMill (BAS) – 10.04 Edition
3.10 Miscellaneous functions
3.10.1 Calling a subroutine
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").

Table of Contents

Other manuals for Siemens SINUMERIK 840D

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Siemens SINUMERIK 840D and is the answer not in the manual?

Siemens SINUMERIK 840D Specifications

General IconGeneral
BrandSiemens
ModelSINUMERIK 840D
CategoryControl Unit
LanguageEnglish

Related product manuals