Siemens Sinumerik 840D sl Programming Manual page 188

Job planning
Hide thumbs Also See for Sinumerik 840D sl:
Table of Contents

Advertisement

Flexible NC programming
1.25 Subprogram technique
<number of
return jump levels>:
<return jump to the
beginning of the
program>:
Note
For a subprogram return jump with a character string to specify the destination block search,
initially, a search is always made for a jump marker in the calling program.
If a jump destination is to be uniquely defined using a character string, it is not permissible
that the character string matches the name of a jump marker, as otherwise the subprogram
return jump would always be made to the jump marker and not to the character string (refer
to example 2).
General conditions
When making a return jump through several program levels, the SAVE instructions of the
individual program levels are evaluated.
If, for a return jump over several program levels, a modal subprogram is active and if in one of
the skipped programs the de-selection command MCALL is programmed for the modal
subprogram, then the modal subprogram remains active.
The programmer must carefully ensure that for a return jump over several program levels,
the program continues with the correct modal settings. This can be achieved, e.g. by
programming an appropriate main block.
188
CAUTION
Return jump parameter 3
Specifies the number of levels that must be jumped back
in order to reach the program level in which program
execution should be continued.
Type:
INT
Value:
1
The program is resumed at the "current
program level  - 1" (like RET without
parameter).
2
The program is resumed at the "current
program level  - 2", i.e. one level is
skipped.
3
The program is resumed at the "current
program level  - 3", i.e. two levels are
skipped.
...
Value
range:
1 ... 15
Return jump parameter 4
Type:
BOOL
Value:
1
If the return jump is made into the main
program and an ISO dialect mode is
active there, then the program branches
to the beginning of the program.
Programming Manual, 02/2011, 6FC5398-2BP40-1BA0
Job planning

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840de slSinumerik 828d

Table of Contents