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
Syntax public string Tool { get; set; }
Property Value
Type:
StringThe name of the associated tool of the mechanical unit.
Exceptions Remarks Only supported by mechanical unit type TCPRobot.
Examples This 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