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>)
Meaning
RET
<target block>
<block after target block>
Job Planning
Programming Manual, 03/2013, 6FC5398-2BP40-3BA1
:
:
Subprogram end (use instead of
Return jump parameter 1
Declares as jump destination the block where program
execution should be resumed.
If the return jump parameter 3 is not programmed, then the
jump destination is in the program from which the current
subprogram was called.
Possible data include:
"<block number>"
"<jump marker>"
"<character string>" Character string that must be known
:
Return jump parameter 2
Refers to the return jump parameter 1.
Type:
INT
Value:
0
Return jump is made to the block that was
specified using return jump parameter 1.
> 0
Return jump is made to the block that
follows the block specified with return
jump parameter 1.
Flexible NC programming
1.24 Subprogram technique
)
M17
Number of the target block
Jump marker that must be set in the
target block.
in the program (e.g. program or
variable name).
The following rules apply when
programming the character string:
Blank at the end (contrary to the
jump marker, that is designated
using ":" at the end).
Before the character string only
one block number and/or a jump
marker may be set, no program
commands.
179