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
Syntaxpublic string WorkObjectName { get; set; }
Property Value
Type:
StringThe associated name of the work object.
Exceptions
RemarksOnly supported by mechanical unit type TCPRobot.
ExamplesThis 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)
{
}
See Also