Siemens SINUMERIK 840D sl Commissioning Manual page 737

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

Advertisement

Example
//B(PROG1)
SUB(UP2)
IF VAR1.val=="Otto"
ENDIF
VAR1.val="Otto"
END_SUB
//END
6.3.23
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.
Variables not utilized in NC code during code generation are stored as user comment. The
term "user comment" refers to all information required to recompile codes. User comment
must not be altered.
Note
The block consisting of NC code and user comment can be recompiled only if it starts at the
beginning of a line.
SINUMERIK Integrate Run MyScreens (BE2)
Programming Manual, 03/2013, 6FC5397-1DP40-3BA1
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 subprogram
; Block end
Programming commands
6.3 Functions
119

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840de sl

Table of Contents