Programming
2.7 Functions
Expanding the user interface
Commissioning Manual, 11/2006, 6FC5397-0DP10-0BA0
2-97
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 value for X has been changed in the parts program
(X101
→
X222)
The following value is displayed for VAR1 in the input dialog:
VAR1 = 222
See also
Summary of Contents for SINUMERIK
Page 6: ...Preface Base software and HMI Advanced 6 Commissioning Manual 03 2009 6FC5397 0DP10 3BA0 ...
Page 96: ......
Page 562: ...Index Expanding the user interface Index 4 Commissioning Manual 11 2006 6FC5397 0DP10 0BA0 ...
Page 566: ...Table of contents Online Help HE1 4 Commissioning Manual 11 2006 6FC5397 0DP10 0BA0 ...
Page 598: ...Online Help HE1 Commissioning Manual 11 2006 6FC5397 0DP10 0BA0 36 ...