Click or drag to resize

MotionSystemGetMechanicalUnits Method

Gets all mechanical units defined in the robot controller.

Namespace:  ABB.Robotics.Controllers.MotionDomain
Assembly:  ABB.Robotics.Controllers (in ABB.Robotics.Controllers.dll) Version: 6.5.129.0
Syntax
C#
public MechanicalUnitCollection GetMechanicalUnits()

Return Value

Type: MechanicalUnitCollection
An array of mechanical units.
Examples
Controller c = new Controller();
MotionSystem motion = c.MotionSystem;
MechanicalUnitCollection mecUnits = motion.GetMechanicalUnits();
foreach (MechanicalUnit m in mecUnits)
{
  if (m.Name == "ROB_1")
      // Do Something
}
See Also