10Parameterizable Subprogram Return Jump (Ret - Siemens Sinumerik 840D sl Programming Manual

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

Advertisement

Flexible NC programming
1.25 Subprogram technique
Subprogram:
Program code
PROC SUB_PROG
...
N100 RET
1.25.2.10 Parameterizable subprogram return jump (RET ...)
Function
Usually, an RET or M17 end of subprogram returns to the program from which the subprogram
was called and processing continues with the program line following the subprogram call.
However, on the other hand, there are also applications where the program should be
resumed at another position, e.g.:
Resuming program execution after calling the stock removal cycles in the ISO dialect
mode (after describing the contour).
Return to main program from any subprogram level (even after ASUB) for error handling.
Return jump through several program levels for special applications in compile cycles and
in the ISO dialect mode.
In cases such as these, the RET command is programmed together with "return jump
parameters".
Syntax
RET("<destination block>")
RET("<destination block>",<block after destination block>)
RET("<destination block>",<block after destination block> <number of
return jump levels>)
RET("<destination block>", ,<number of return jump levels>)
RET("<destination block>",<block after destination block>,<number of
return jump levels>,
<return jump to the beginning of the program>)
RET( , ,<number of return jump levels>,<return jump to the beginning
of the program>)
186
Comment
; Prompts return jump to block N60 in the main 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