RapidSymbolSearchRapidSymbol Method |
Namespace:
ABB.Robotics.Controllers.RapidDomain
Assembly:
ABB.Robotics.Controllers (in ABB.Robotics.Controllers.dll) Version: 6.5.129.0
Syntax Exceptions Examples This example retrieves all RAPID data instances and functions of data type num declared in task T_ROB1.
Name of
RapidSymbol and declaring module are added to a listview.
private void btnSearch_Click(object sender,EventArgs e)
{
try
{
if (tT_Rob1 == null)
tT_Rob1 = ctrl.Rapid.GetTask("T_ROB1");
RapidSymbolSearchProperties sProp =
RapidSymbolSearchProperties.CreateDefault();
sProp.SymbolType = SymbolTypes.Function | SymbolTypes.RapidData;
sProp.IsInUse = false;
sProp.SearchMethod = SymbolSearchMethod.Block;
RapidSymbol[] datas = tT_Rob1.SearchRapidSymbol(sProp,"num",string.Empty);
foreach (RapidSymbol rs in datas)
{
ListViewItem li = new ListViewItem(rs.Name);
li.SubItems.Add(rs.Scope[1]);
listView1.Items.Add(li);
}
}
catch (System.Exception ee)
{
}
}
See Also