Siemens SINUMERIK 808D Function Manual page 260

Hide thumbs Also See for SINUMERIK 808D:
Table of Contents

Advertisement

Tag identifier
CONTROL continued
CONTROL continued
260
Meaning
Example:
<CONTROL name = "button1" xpos = "10" ypos = "10" fieldtype = " com-
bobox ">
<ITEM>text1</ITEM>
<ITEM>text2</ITEM>
<ITEM>text3</ITEM>
<ITEM>text4</ITEM>
</CONTROL>
If any integer value is to be assigned to an expression, the attribute value = "value" should
be added to the tag.
Rather than consecutive numbers, the control variable now contains the item's assigned
value.
Example:
<CONTROL name = "button1" xpos = "10" ypos = "10" fieldtype = " com-
bobox ">
<ITEM value = "10">text1</ITEM>
<ITEM value = "20">text2</ITEM>
<ITEM value = "12">text3</ITEM>
<ITEM value = "1">text4</ITEM>
</CONTROL>
Example of a progress bar:
<CONTROL name = "progress1" xpos = "10" ypos = "10" width = "100"
fieldtype = "progressbar" hotlink = "true" refvar =
"nck/Channel/GeometricAxis/actProgPos[1]">
<PROPERTY min = "0" />
<PROPERTY max = "1000" />
</CONTROL>
Example, list box:
<let name="item_string" type="string"></let>
<let name="item_data" ></let>
<CONTROL name="listbox1" xpos = "360" ypos="150" width="200"
height="200" fieldtype="listbox" />
Adding elements:
Elements are added using the function additem, insertitem, or loaditem.
Deleting the content:
The content is deleted using the function empty.
<op> item_string = _T"text1\\n" </op>
<function name="control.additem">_T"listbox1", item_string,
item_data </function>
<op> item_string = _T"text2\\n" </op>
<function name="control.additem">_T"listbox1", item_string,
item_data </function>
Example itemlist:
<CONTROL name = "itemlist1" xpos = "10" ypos = "10" fieldtype = "
itemlist">
<ITEM value = "10">text1</ITEM>
<ITEM value = "20">text2</ITEM>
<ITEM value = "12">text3</ITEM>
<ITEM value = "1">text4</ITEM>
</CONTROL>
Function Manual
01/2017

Advertisement

Table of Contents
loading

Table of Contents