ActiveMechanicalUnitEventArgs Class |
Namespace: ABB.Robotics.Controllers.MotionDomain
public class ActiveMechanicalUnitEventArgs : ControllerEventArgs
The ActiveMechanicalUnitEventArgs type exposes the following members.
Name | Description | |
---|---|---|
Name |
Gets the name of the mechanical unit, which has been activated
| |
Time |
Time stamp of the event (from the controller).
(Inherited from ControllerEventArgs.) |
Name | Description | |
---|---|---|
Equals | (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
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 } }