RoutineGetRapidData Method |
Gets a
RapidData object that references a RAPID data
instance in the robot controller.
Namespace:
ABB.Robotics.Controllers.RapidDomain
Assembly:
ABB.Robotics.Controllers (in ABB.Robotics.Controllers.dll) Version: 6.5.129.0
Syntaxpublic RapidData GetRapidData(
params string[] rapidData
)
Parameters
- rapidData
- Type: SystemString
Name of the RAPID data instance.
Return Value
Type:
RapidDataA
RapidData object. If the RAPID data instance doesn't
exist null is returned.
Exceptions
RemarksNOTE:When the returned instance is no longer needed you must call its Dispose method.
ExamplesThis example uses the method
GetRapidData(String) to get the value of the RAPID data
stStr1.
private string GetRoutineString(Module m,string stRoutName)
{
Routine routine;
RapidData rd;
string result = string.Empty;
try
{
routine = m.GetRoutine(stRoutName);
rd = routine.GetRapidData("stStr1");
result = rd.Value.ToString();
}
catch (GeneralException ee)
{
}
catch (System.Exception ee)
{
}
finally
{
if (rd != null)
rd.Dispose();
rd = null;
if (routine != null)
routine.Dispose();
routine = null;
}
return result;
}
See Also