EasyManuals Logo
Home>Siemens>Control Systems>SINUMERIK ONE MCP 2400.4c

Siemens SINUMERIK ONE MCP 2400.4c Programming Manual

Siemens SINUMERIK ONE MCP 2400.4c
1334 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #512 background imageLoading...
Page #512 background image
Subprogram:
Program code Comment
PROC SUB_PROG
...
N100 RET ; Return jump to block N60 in the main program.
3.2.2.10 Parameterizable subprogram return jump (RET ...)
Generally, a return jump is made from a subprogram into the calling program using the RET
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 RET 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 end of the program into
which a return jump was made. A search is made toward the start of the program if the search
was not successful.
Syntax
RET("<target block>")
RET("<target block>",<block after target block>)
RET("<target block>",<block after target block> <number of return
jump levels>)
RET("<target block>", ,<number of return jump levels>)
RET("<target block>",<block after target 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>)
Work preparation
3.2 Subprogram technique
NC programming
512 Programming Manual, 12/2019, 6FC5398-2EP40-0BA0

Table of Contents

Other manuals for Siemens SINUMERIK ONE MCP 2400.4c

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Siemens SINUMERIK ONE MCP 2400.4c and is the answer not in the manual?

Siemens SINUMERIK ONE MCP 2400.4c Specifications

General IconGeneral
BrandSiemens
ModelSINUMERIK ONE MCP 2400.4c
CategoryControl Systems
LanguageEnglish

Related product manuals