Siemens SINUMERIK Commissioning Manual page 447

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

Advertisement

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.
Examples:
The programm contains the following NC code:
DEF VAR1=(I//101)
OUTPUT(CODE1)
"X" VAR1 " Y200"
"X" VAR1 " Y0"
END_OUTPUT
The following code is then stored in the parts program:
;NCG#TestGC#\cus.dir\aeditor.com#CODE1#1#3#
X101 Y200
X101 Y0
;#END#
The Editor reads the following during recompilation:
X101 Y200
X222 Y0
The following value is displayed for VAR1 in the input dialog: VAR1 = 222
See also
Generate code (GC) (Page 2-82)
Expanding the user interface
Commissioning Manual, 11/2006, 6FC5397-0DP10-0BA0
; The value for X has been changed in the parts program
(X101 → X222)
Programming
2.7 Functions
2-97

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents