Class Unit
Unit data.
Inherited Members
Namespace: ABB.Robotics.Controllers.IOSystemDomain
Assembly: ABB.Robotics.Controllers.PC.dll
Syntax
[CLSCompliant(true)]
public class Unit : SDKControllerBoundBase, IComparable, IDisposable, INamedObject
Constructors
Unit(Controller, String)
Initializes a new instance of the Unit class.
Declaration
protected Unit(Controller controller, string name)
Parameters
Type | Name | Description |
---|---|---|
Controller | controller | The controller. |
System.String | name | The name. |
Properties
Address
Gets the Address for this unit.
Declaration
public virtual string Address { get; }
Property Value
Type | Description |
---|---|
System.String |
Bus
Gets the bus for this unit.
Declaration
public virtual string Bus { get; }
Property Value
Type | Description |
---|---|
System.String |
LogicalState
Gets the logical state for this unit.
Declaration
public virtual IOUnitLogicalState LogicalState { get; }
Property Value
Type | Description |
---|---|
IOUnitLogicalState |
PhysicalState
Gets the physical state for this unit.
Declaration
public virtual IOUnitPhysicalState PhysicalState { get; }
Property Value
Type | Description |
---|---|
IOUnitPhysicalState |
Type
gets the type of the unit
Declaration
public virtual string Type { get; }
Property Value
Type | Description |
---|---|
System.String |
Methods
SubscribeSignalChange(EventHandler<UnitSignalChangedEventArgs>, EventPriority)
Subscribes to signal changes on an unit.
Declaration
public void SubscribeSignalChange(EventHandler<UnitSignalChangedEventArgs> handler, EventPriority priority)
Parameters
Type | Name | Description |
---|---|---|
System.EventHandler<UnitSignalChangedEventArgs> | handler | EventHandler |
EventPriority | priority | EventPriority |
SubscribeStateChange(EventHandler<UnitStateChangedEventArgs>, EventPriority)
Subscribes to unit state changes.
Declaration
public void SubscribeStateChange(EventHandler<UnitStateChangedEventArgs> handler, EventPriority priority)
Parameters
Type | Name | Description |
---|---|---|
System.EventHandler<UnitStateChangedEventArgs> | handler | EventHandler |
EventPriority | priority | EventPriority |
UnsubscribeSignalChange(EventHandler<UnitSignalChangedEventArgs>)
Unsubsribe to signal changes on an unit.
Declaration
public void UnsubscribeSignalChange(EventHandler<UnitSignalChangedEventArgs> handler)
Parameters
Type | Name | Description |
---|---|---|
System.EventHandler<UnitSignalChangedEventArgs> | handler | EventHandler |
UnsubscribeStateChange(EventHandler<UnitStateChangedEventArgs>)
Unsubsribe to unit state changes.
Declaration
public void UnsubscribeStateChange(EventHandler<UnitStateChangedEventArgs> handler)
Parameters
Type | Name | Description |
---|---|---|
System.EventHandler<UnitStateChangedEventArgs> | handler | EventHandler |
Events
SignalChanged
Occurs when a signal is changed on the unit.
Declaration
public event EventHandler<UnitSignalChangedEventArgs> SignalChanged
Event Type
Type | Description |
---|---|
System.EventHandler<UnitSignalChangedEventArgs> |
StateChanged
Occurs when the physical or logical state of the unit has changed, or if a bit (a signal) has changed on the unit.
Declaration
public event EventHandler<UnitStateChangedEventArgs> StateChanged
Event Type
Type | Description |
---|---|
System.EventHandler<UnitStateChangedEventArgs> |
Implements
System.IComparable
System.IDisposable