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