Click or drag to resize

MotionSystemActiveMechanicalUnitChanged Event

This event is raised at a change of 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 event ActiveMechanicalUnitEventHandler ActiveMechanicalUnitChanged

Value

Type: ABB.Robotics.Controllers.MotionDomainActiveMechanicalUnitEventHandler
Examples
This example sets up a subscription for the event and uses the event args to check the name of the mechanical unit.
Controller c = new Controller();
MotionSystem motion = c.MotionSystem;
motion.ActiveMechanicalUnitChanged +=new ActiveMechanicalUnitEventHandler(motion_ActiveMechanicalUnitChanged);

private void motion_ActiveMechanicalUnitChanged(MotionSystem sender, ActiveMechanicalUnitEventArgs e)
{
    if (e.Name == "ROB_1")
    {
        // Do something
    }
}
See Also