Variables
5.3 Example 1: Assigning the variable type, texts, help display, colors, tooltips
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<<"]"
END_PRESS
Changing softkey labels
Example:
HS3.st = "New Text"
5.3
Example 1: Assigning the variable type, texts, help display, colors,
tooltips
Example 1a
Assigning the Variable type, Texts, Help display, and Colors properties
DEF Var1 = (R///,"Actual value",,"mm"//"Var1.png"////8,2)
52
;Change softkey label
Variable Type:
Limits or entry in the toggle field:
Default setting:
Texts:
Long text:
Short text:
Graphic text:
Unit text:
Attributes:
Help screen:
System or user variable:
Position of short text:
Position of input/output field:
Colors:
Foreground color:
Background color:
;Address axis address via variable
REAL
None
None
None
Actual
value
none
mm
None
Var1.png
None
No data, i.e. default position
No data, i.e. default position
8
2
SINUMERIK Integrate Run MyScreens (BE2)
Programming Manual, 03/2013, 6FC5397-1DP40-3BA1