EasyManuals Logo

Siemens SINUMERIK 808D User Manual

Siemens SINUMERIK 808D
339 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 #133 background imageLoading...
Page #133 background image
Programming and Operating Manual (Milling)
6FC5398-4DP10-0BA6, 09/2017
133
See the following illustration for example of sequence when calling a subroutine twice:
Subroutine name
The program is given a unique name allowing it to be selected from several subroutines. When you create the program, the
program name may be freely selected, provided the following conventions are observed.
The same rules apply as for the names of main programs.
Example:
LRAHMEN7
It is also possible to use the address word
L...
in subroutines. The value can have 7 decimal places (integers only).
Note
With address L, leading zeros are meaningful for differentiation.
Example:
L128
is not
L0128
or
L00128
.
These are three different subroutines.
Note
The subroutine name
LL6
is reserved for tool change.
Subroutine call
Subroutines are called in a program (main or subroutine) with their names. To do this, a separate block is required.
Example:
N10 L785
; Call subroutine L785
N20 LRAHMEN7
; Call subroutine LRAHMEN7
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
; Call subroutine 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.

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