Programming
2.3 Variables
Expanding the user interface
Commissioning Manual, 11/2006, 6FC5397-0DP10-0BA0
2-33
2.3.11 Example 3: Assigning the Variable Type, Default, System or User Variable,
Input/Output Field Position properties
Example 3
Assigning the Variable Type, Default, System or User Variable, Input/Output Field Position
properties
DEF Var3 =(R//10////"$R[1]"//300,10,200//"Help.pdf",1,"Help1")
Variable Type: String
Limits or toggle field entries: none
Default: 10
Texts: none
Attributes: none
Help display: none
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
Colors: No data, i.e., default
Help: In file Help.pdf, Help with the Help text
"Help1" is called on the page with the
index 1 when the <i> button is pressed.
2.3.12 Examples relating to toggle field, Help call and image display
Example 4
Various entries in the toggle field:
Limits or toggle field entries:
DEF Var1 = (I/* 0,1,2,3)
DEF Var2 = (S/* "In", "Out")
DEF Var3 = (B/* 1="In", 0="Out")
DEF Var4 = (R/* ARR1)
;1 and 0 are values, "In" and "Out" are displayed.
;ARR1 is the name of an array.