MechanicalUnitTool Property |
Gets or sets the active tool.
Namespace:
ABB.Robotics.Controllers.MotionDomain
Assembly:
ABB.Robotics.Controllers (in ABB.Robotics.Controllers.dll) Version: 6.5.129.0
Syntaxpublic string Tool { get; set; }
Property Value
Type:
StringThe name of the associated tool of the mechanical unit.
Exceptions
RemarksOnly supported by mechanical unit type TCPRobot.
ExamplesThis example sets the active tool to Tool0 for the active mechanical unit.
Controller c = new Controller();
MotionSystem motion = c.MotionSystem;
MechanicalUnit mech = motion.GetActiveMechanicalUnit();
try
{
mech.Tool = "Tool0";
}
catch (ArgumentException)
{
}
See Also