Click or drag to resize

MechanicalUnitDataEventArgs 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 MechanicalUnitDataEventArgs : ControllerEventArgs

The MechanicalUnitDataEventArgs type exposes the following members.

Properties
  NameDescription
Public propertyReason
Reason for the change event
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 any data of the active mechanical unit.
Controller c = new Controller();
MotionSystem motion = c.MotionSystem;
MechanicalUnit mech = motion.GetActiveMechanicalUnit();
mech.DataChanged +=new MechanicalUnitDataEventHandler(mech_DataChanged);

private void mech_DataChanged(MechanicalUnit sender, MechanicalUnitDataEventArgs e)
{
    // Reread data stored in local variables, e.g., tool.
}
See Also