Programming
2.3 Variables
Expanding the user interface
Commissioning Manual, 11/2006, 6FC5397-0DP10-0BA0
2-31
Calculation with variables
Variables are calculated every time you exit an input/output field (by pressing the ENTER or
TOGGLE key). The calculation is configured in a CHANGE method that is processed every
time the value changes.
You can scan the variable status to ascertain the validity of the value of the variable, e.g.,
Var1 = Var5 + SIN(Var2)
Otto = PI * Var4
Addressing system variables indirectly
A system variable can also be addressed indirectly, i.e., as a function of another variable:
PRESS(HS1)
AXIS=AXIS+1
WEG.VAR="$AA_DTBW["<<AXIS<<"]" ;Address axis address via
variable
END_PRESS
Changing the softkey label
Example
HS3.st = "New Text" ;Change softkey label
2.3.9
Example 1: Assigning the Variable Type, Texts, Help, Colors properties
Example 1
Assigning the Variable Type, Texts, Help, Colors properties
DEF Var1 = (R///,"Actual value",,"mm"//"Var1.bmp"////8,2)
Variable Type:
REAL
Limits or toggle field entries:
none
Default:
none
Texts:
Long text:
None
Short text:
Actual value
Graphic text:
none
Unit text:
mm
Attributes:
none
Help display:
Var1.bmp
System or user variable:
none
Position of short text:
No data, i.e., default position
Position of input/output field:
No data, i.e., default position
Содержание SINUMERIK
Страница 6: ...Preface Base software and HMI Advanced 6 Commissioning Manual 03 2009 6FC5397 0DP10 3BA0 ...
Страница 24: ...Introduction 1 5 Limits of data management HMI Advanced IM4 18 Commissioning Manual 03 2009 6FC5397 0DP10 3BA0 ...
Страница 96: ......
Страница 338: ...List of Abbreviations B 1 Abbreviations HMI Advanced IM4 332 Commissioning Manual 03 2009 6FC5397 0DP10 3BA0 ...
Страница 464: ...Programming 2 8 Operators Expanding the user interface 2 114 Commissioning Manual 11 2006 6FC5397 0DP10 0BA0 ...
Страница 562: ...Index Expanding the user interface Index 4 Commissioning Manual 11 2006 6FC5397 0DP10 0BA0 ...
Страница 566: ...Table of contents Online Help HE1 4 Commissioning Manual 11 2006 6FC5397 0DP10 0BA0 ...
Страница 598: ...Online Help HE1 Commissioning Manual 11 2006 6FC5397 0DP10 0BA0 36 ...
Страница 638: ...References for text generation Generating target language texts TX2 40 Commissioning Manual 11 2006 6FC5397 0DP10 0BA0 ...
Страница 672: ...Commissioning a system 1 4 BIOS settings PCU Basesoftware IM8 32 Commissioning Manual 03 2009 6FC5397 1DP10 4BA0 ...