Click or drag to resize

MotionSystemGetActiveMechanicalUnit Method

Gets the active mechanical unit.

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

Return Value

Type: MechanicalUnit
The active mechanical unit, or null if there is no active mechanical unit.
Examples
Controller c = new Controller();
MotionSystem motion = c.MotionSystem;
MechanicalUnit mech = motion.GetActiveMechanicalUnit();
if (mech.Name == "Rob_1")
{
    //Do something
}
See Also