Siemens SINUMERIK 840DE sl Commissioning Manual page 1162

Basesoftware and operating software
Hide thumbs Also See for SINUMERIK 840DE sl:
Table of Contents

Advertisement

Programming commands
6.3 Functions
Programming
Syntax:
Description:
Parameters:
Example
//B(PROG1)
SUB(UP2)
IF VAR1.val=="Otto"
ENDIF
VAR1.val="Otto"
END_SUB
//END
6.3.33
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.
Programming
Variables from the NC code are transferred to the dialog. At the same time, the variable values
from the NC code are compared with the calculated variable values from the configuration file.
If the values do not coincide, an error message is written to the log book because values have
been changed during NC code generation.
If the NC code contains the same variable several times, it is evaluated at the point where it
last occurs during recompilation. A warning is also written to the log book.
176
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 as-
signed to the variable, and the subprogram ends at this
point.
; If the variable value ≠ Otto, the value "Otto" is as-
signed to the variable.
; End of subprogram
; Block end
Programming Manual, 12/2017, 6FC5397-1DP40-6BA1
SINUMERIK Integrate Run MyScreens (BE2)

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840d sl

Table of Contents