Flexible NC programming
1.25 Subprogram technique
Job planning
Programming Manual, 07/2010, 6FC5398-2BP40-0BA0
175
Significance
RET: Subprogram end (use instead of M17)
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>" Number of the destination block
"<jump marker>" Jump marker that must be set in the
destination block.
<destination block>:
"<character
string>"
Character string that must known 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.
Return jump parameter 2
Refers to the return jump parameter 1.
Type: INT
0 Return jump is made to the block that
was specified using return jump
parameter 1.
<block after destination
block>
:
Value:
> 0 Return jump is made to the block that
follows the block specified with return
jump parameter.