Siemens SINUMERIK 828D Commissioning Manual page 860

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

Advertisement

Generating user dialogs
1.9 Predefined functions
Function name
Get Item
Get Item Data
108
Description
For a list box, the function copies the contents of the selected line to
the specified variable.
A string variable should be specified as reference variable.
The Controlname should be transferred as text expression of the func‐
tion.
Syntax:
<function name="control.getitem" return="var">
control name, index </function>
Example:
<let name>="index">2</let>
<let name>="item" type="string"></let>
<function name="control.getitem" return="item"
">_T"listbox1",index</function>
For a list box, the function copies the user-specific allocated value of
an element to the specified variable.
For an edit control, the function copies the user-specific allocated value
(item_data) to the specified variable.
An integer variable should be specified as reference variable.
The Controlname should be transferred as text expression of the func‐
tion.
Syntax:
<function name="control.getitemdata" return="var">
control name, index </function>
Example:
<let name>="index">2</let>
<let name>="itemdata"></let>
<function name="control.getitemdata"
return="itemdata" ">_T"listbox1",index</function>
Programming Manual, 10/2015, 6FC5397-3DP40-5BA3
Easy XML

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents