Class Signal
This class represents an IO signal.
Inheritance
Inherited Members
Namespace: ABB.Robotics.Controllers.IOSystemDomain
Assembly: ABB.Robotics.Controllers.PC.dll
Syntax
public abstract class Signal : SDKControllerBoundBase, IComparable, IDisposable, INamedObject
Constructors
Signal(Controller, String)
Initializes a new instance of the Signal class.
Declaration
protected Signal(Controller controller, string name)
Parameters
Type | Name | Description |
---|---|---|
Controller | controller | The controller. |
System.String | name | The name. |
Signal(Controller, String, Boolean)
Initializes a new instance of the Signal class.
Declaration
protected Signal(Controller controller, string name, bool digital)
Parameters
Type | Name | Description |
---|---|---|
Controller | controller | The controller. |
System.String | name | The name. |
System.Boolean | digital | Flag to indicate a digital signal. |
Properties
InputAsPhysical
Define if simulate setting of physical input-signals shall be used for the virtual controller. If InputAsPhysical is true is the signal's configured access level not checked. Supported from RW5.13
Declaration
public bool InputAsPhysical { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Log
Define if changes to the signal value shall be logged in the controller event log. Supported from RW 6.06.
Declaration
public bool Log { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
MaxValue
Gets the maximum value of the signal.
Declaration
public virtual float MaxValue { get; }
Property Value
Type | Description |
---|---|
System.Single |
MinValue
Gets the minimum value of the signal.
Declaration
public virtual float MinValue { get; }
Property Value
Type | Description |
---|---|
System.Single |
State
Gets the SignalState of the signal.
Declaration
public virtual SignalState State { get; }
Property Value
Type | Description |
---|---|
SignalState |
Type
Gets the SignalType of the signal.
Declaration
public virtual SignalType Type { get; }
Property Value
Type | Description |
---|---|
SignalType |
Unit
Gets the name of the unit the signal is mapped to.
Declaration
public virtual string Unit { get; }
Property Value
Type | Description |
---|---|
System.String |
Value
Gets or sets the value of the signal.
Declaration
public virtual float Value { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
Methods
Subscribe(EventHandler<SignalChangedEventArgs>, EventPriority)
Subscribes to signal changes.
Declaration
public void Subscribe(EventHandler<SignalChangedEventArgs> handler, EventPriority priority)
Parameters
Type | Name | Description |
---|---|---|
System.EventHandler<SignalChangedEventArgs> | handler | EventHandler |
EventPriority | priority | EventPriority |
Unsubscribe(EventHandler<SignalChangedEventArgs>)
Unsubscribes to signal changes.
Declaration
public void Unsubscribe(EventHandler<SignalChangedEventArgs> handler)
Parameters
Type | Name | Description |
---|---|---|
System.EventHandler<SignalChangedEventArgs> | handler | EventHandler |
Events
Changed
Occurs when the value or the state of the signal has changed.
Declaration
public event EventHandler<SignalChangedEventArgs> Changed
Event Type
Type | Description |
---|---|
System.EventHandler<SignalChangedEventArgs> |