5.5 Example 3: Assigning the Variable Type, Default, System or User
Variable, Input/Output Field Position properties
Example 3
The
following example defines a variable for which the properties variable type, default setting,
system or user variable and position are set.
DEF Var3 = (R//10////"$R[1]"//300,10,200//)
Variable type: REAL
Default setting: 10
System or user variable: $R[1] (R-Parameter 1)
Position of short text: Default position in relation to input/output field
Position of input/output field:
Distance from left: 300
Distance from top: 10
Width: 200
See also
Variable parameters (Page 69)
5.6 Example 4: Toggle field and list field
Example 4a
Various entries in the toggle field:
DEF Var1 = (I/* 0,1,2,3) ;Simple toggle field to toggle numeric values
DEF Var2 = (S/* "On", "Off") ;Simple toggle field to toggle strings
DEF Var3 = (B/* 1="On", 0="Off") ;Extended toggle field to toggle numeric values whereby a
display text is assigned to each numeric value
DEF Var4 = (R/* ARR1) ;Toggle field which obtains its values to be toggled from an
array
Variables
5.6 Example 4: Toggle field and list field
SINUMERIK Integrate Run MyScreens
Programming Manual, 10/2015, 6FC5397-3DP40-5BA3 65