RapidDataWriteItem Method |
Writes an item of the Rapid data array
Namespace:
ABB.Robotics.Controllers.RapidDomain
Assembly:
ABB.Robotics.Controllers (in ABB.Robotics.Controllers.dll) Version: 6.5.129.0
Syntax
Exceptions
ExamplesThis example reads an robtarget array and the value of the X-orientation is increased by one for each item.
private void IncXOrientation(Conroller c)
{
try
{
RapidData rdRobtarget = c.Rapid.GetRapidData("T_ROB1","MyModule","rt_array");
for (int i = 5;i > 0;i--)
{
RobTarget rtValue = (RobTarget) rdRobtarget.ReadItem(i);
rtValue.Trans.X += 1;
rdRobtarget.WriteItem(rtValue,i);
}
}
catch (GeneralException ee)
{
}
catch (System.Exception ee)
{
}
finally
{
if (rdRobtarget != null)
rdRobtarget.Dispose();
}
}
See Also