EasyManuals Logo

Siemens SINUMERIK 808D Programming And Operating Manual

Siemens SINUMERIK 808D
208 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 #96 background imageLoading...
Page #96 background image
Programming principles
1.11 Subroutine technique
Turning Part 2: Programming (Siemens instructions)
96 Programming and Operating Manual, 05/2012, 6FC5398-5DP10-0BA0
Subroutine call
Subroutines are called in a program (main or subprogram) with their names. To do this, a
separate block is required.
Example:
N10 L785 ; Subprogram call L785
N20 SHAFT7 ; Subprogram call SHAFT7
Program repetition P...
If a subroutine is to be executed several times in succession, write the number of times it is
to be executed in the block of the call after the subroutine name under the address P. A
maximum of 9,999 cycles are possible (P1 ... P9999).
Example:
N10 L785 P3 ; Subprogram call L785, 3 cycles
Nesting depth
Subroutines can also be called from a subroutine, not only from a main program. In total, up
to 8 program levels are available for this type of nested call, including the main program
level.


6XESURJUDP
6XESURJUDP
0DLQSURJUDP
WKOHYHO
UGOHYHO
QGOHYHO
VWOHYHO
6XESURJUDP
Figure 1-52 Execution with 8 program levels
Information
Modal G functions can be changed in the subroutine, e.g. G90 -> G91. When returning to the
calling program, ensure that all modal functions are set the way you need them to be.
Please make sure that the values of your arithmetic parameters used in upper program
levels are not inadvertently changed in lower program levels.
When working with SIEMENS cycles, up to 7 program levels are needed.

Table of Contents

Other manuals for Siemens SINUMERIK 808D

Questions and Answers:

Question and Answer IconNeed help?

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

Siemens SINUMERIK 808D Specifications

General IconGeneral
BrandSiemens
ModelSINUMERIK 808D
CategoryControl Unit
LanguageEnglish

Related product manuals