Siemens SINUMERIK Commissioning Manual page 446

Sinumerik 840di sl/840d sl/840dbase software and hmi advanced
Hide thumbs Also See for SINUMERIK:
Table of Contents

Advertisement

Programming
2.7 Functions
2.7.23
RETURN
Description
The RETURN function can be used to prematurely terminate execution of the current
subprogram and to return to the branch point of the last CALL command.
If no RETURN command is configured in the subprogram, the subprogram will run to the end
before returning to the branch point.
Programming
Syntax:
Description:
Parameters:
Example
//B(PROG1)
SUB(UP2)
IF VAR1.val=="Otto"
ENDIF
VAR1.val="Otto"
END_SUB
//END
2.7.24
Recompile
Description
In the programming support system, it is possible to recompile NC code that has been
generated with the GC function and to display the variable values in the input/output field of
the associated entry dialog again.
2-96
RETURN
Returns to the branch point
- None -
VAR1.val="Hans"
RETURN
;
Block start
;
Start of subprogram
;
If the variable value = Otto, the value "Hans"
is assigned to the variable, and the subprogram
ends at this point.
;
If the variable value ≠ Otto, the value "Otto"
is assigned to the variable.
;
End of subroutine
;
Block end
Commissioning Manual, 11/2006, 6FC5397-0DP10-0BA0
Expanding the user interface

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents