Ret Subprogram Return - Siemens Sinumerik 840D sl Programming Manual

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

Advertisement

1.25.2.9

RET subprogram return

Function
The RET command can also be used in the subprogram as a substitute for the M17 return
jump command. RET must be programmed in a separate part program block. Like M17, RET
prompts the return to the calling program at the part program block following the subprogram
call.
Note
Parameters can be programmed to change the return jump behavior of RET (see
"Parameterizable subprogram return jump (RET ...) [Page 186]").
Application
The RET operation should then be used if a G64 continuous-path mode (G641 to G645) is not
to be interrupted by the return jump.
Precondition
The RET command can only be used in subprograms, which were not defined with the SAVE
attribute.
Syntax
PROC <program name>
...
RET
Example
Main program:
Program code
PROC MAIN_PROGRAM
...
N50 SUB_PROG
N60 ...
...
N100 M30
Job planning
Programming Manual, 02/2011, 6FC5398-2BP40-1BA0
Comment
; Beginning of the program
; Subprogram call: SUB_PROG
; End of program
Flexible NC programming
1.25 Subprogram technique
185

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840de slSinumerik 828d

Table of Contents