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
Example 4b
The list field corresponds to the configuration of a toggle field, but the display type for the list
field (variable attribute DT = 4) must also be set.
DEF VAR_LISTBOX_Text = (S/*$80000,$80001,$80002,$80003,$80004/$80001//DT4////200,,340,60)
Variable type: STRING
Limits / toggle field: *$80000,$80001,$80002,$80003,$80004
(list of the language-dependent texts to be dis‐
played)
Default setting: $80001
Attributes:
Display type: 4 (list field)
Position of input/output field:
Distance from left: 200
Width: 340
Height: 60
Colors:
Foreground color: 6 (blue)
Background color: 10 (white)
Variables
5.6 Example 4: Toggle field and list field
SINUMERIK Integrate Run MyScreens (BE2)
Programming Manual, 12/2017, 6FC5397-1DP40-6BA1 87