Click or drag to resize

MechanicalUnitWorkObjectName Property

Gets or sets the active work object.

Namespace:  ABB.Robotics.Controllers.MotionDomain
Assembly:  ABB.Robotics.Controllers (in ABB.Robotics.Controllers.dll) Version: 6.5.129.0
Syntax
C#
public string WorkObjectName { get; set; }

Property Value

Type: String
The associated name of the work object.
Exceptions
ExceptionCondition
ArgumentExceptionIf trying to set the Work Object to a not valid work object.
ResourceHeldExceptionWe are unable to take mastership.
InvalidOperationExceptionThe mechanical unit is not of correct type, i.e. MechanicalUnitType.TCPRobot.
Remarks
Only supported by mechanical unit type TCPRobot.
Examples
This example sets the active work object to wobj0 for the active mechanical unit.
Controller c = new Controller();
MotionSystem motion = c.MotionSystem;
MechanicalUnit mech = motion.GetActiveMechanicalUnit();
try
{
   mech.WorkObject = "wobj0";
}
catch (ArgumentException)
{
    // Error handling, invalid work object.
}
See Also