Siemens SINUMERIK 808D User Manual page 133

Programming and operating manual (milling)
Hide thumbs Also See for SINUMERIK 808D:
Table of Contents

Advertisement

See the following illustration for example of sequence when calling a subroutine twice:
Su broutine 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: L R AHMEN7
It is also possible to use the address word L ... in subroutines. The value can have 7 decimal places (integers only).
N o te
With address L, leading zeros are meaningful for differentiation.
Example: L 128 is not L 0 128 or L 00128.
These are three different subroutines.
N o te
The subroutine name L L6 is reserved for tool change.
Su broutine call
Subroutines are called in a program (main or subroutine) with their names. To do this, a separate block is required.
Example:
N10 L785
N20 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 a d dress P. A maximum of 9 ,999 cycles are possible (P1 ... P9999).
Example:
N10 L785 P3
N e sting depth
Subroutines can also be called from a subroutine, not only from a main program. In total, up to 8 p rogram levels are
available for this type of nested call, including the main program level.
Programming and Operating Manual (Milling)
6FC5398-4DP10-0BA6, 09/2017
; Call subroutine L785
; Call subroutine LRAHMEN7
; Call subroutine L785, 3 cycles
133

Advertisement

Table of Contents
loading

Table of Contents