Click or drag to resize

ActiveMechanicalUnitEventArgs Class

Provides the data for an event.
Inheritance Hierarchy

Namespace:  ABB.Robotics.Controllers.MotionDomain
Assembly:  ABB.Robotics.Controllers (in ABB.Robotics.Controllers.dll) Version: 6.5.129.0
Syntax
C#
public class ActiveMechanicalUnitEventArgs : ControllerEventArgs

The ActiveMechanicalUnitEventArgs type exposes the following members.

Properties
  NameDescription
Public propertyName
Gets the name of the mechanical unit, which has been activated
Public propertyTime
Time stamp of the event (from the controller).
(Inherited from ControllerEventArgs.)
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Examples
This example sets up the subscription for change of active mechanical unit and uses the event for checking 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