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

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

Advertisement

Example
Main program:
Program code
PROC MAIN_PROGRAM
...
N50 SUB_PROG
N60 ...
...
N100 M30
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
● 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 cases such as these, the RET command is programmed together with "return jump
parameters".
Job Planning
Programming Manual, 06/2009, 6FC5398-2BP20-0BA0
mode (after describing the contour).
in the ISO dialect mode.
Comment
; Beginning of the program
; Subprogram call: SUB_PROG
; End of program
Comment
; Prompts return jump to block N60 in the main program.
Flexible NC programming
1.25 Subprogram technique
195

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 828dSinumerik 840de sl

Table of Contents