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

Nc programming
Hide thumbs Also See for SINUMERIK 840D sl:
Table of Contents

Advertisement

Work preparation
3.2 Subprogram technique
3. <target block> = "N220", <number of return jump levels> = 2
After the RET command, two program levels are jumped through and program execution is
continued with block N220.
3.2.2.11

Parameterizable subprogram return jump (RETB ...)

Generally, a return jump is made from a subprogram into the calling program using the RETB
command. Processing is then continued with the program line following the subprogram call.
The following options are available if program processing is to be continued at another location:
● Resume 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 across several program levels for special applications in compile cycles and in
the ISO dialect mode.
To achieve this, the RETB command should be programmed with additional parameters.
Search direction
When specifying parameter <target block>, a return jump is first made to the block after the
calling block. A search is then made for the target in the direction of the beginning of the
program into which a return jump is made. A search is made toward the end of the program if
the search was not successful.
Syntax
RETB("<target block>")
RETB("<target block>",<block after target block>)
RETB("<target block>",<block after target block> <number of return
jump levels>)
RETB("<target block>", ,<number of return jump levels>)
518
Programming Manual, 12/2019, 6FC5398-2EP40-0BA0
NC programming

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840de sl

Table of Contents