Class DigitalSignal
This class represent a digital signal.
Inherited Members
Namespace: ABB.Robotics.Controllers.IOSystemDomain
Assembly: ABB.Robotics.Controllers.PC.dll
Syntax
public sealed class DigitalSignal : Signal, IComparable, IDisposable, INamedObject
Constructors
DigitalSignal(Controller, String)
Initializes a new instance of the DigitalSignal class.
Declaration
public DigitalSignal(Controller controller, string name)
Parameters
Type | Name | Description |
---|---|---|
Controller | controller | The controller. |
String | name | The name. |
Properties
IsSet
Gets a boolean expression to test if the signal is set or not. Uses Value > 0 to test.
Declaration
public bool IsSet { get; }
Property Value
Type | Description |
---|---|
Boolean |
MaxValue
Gets the Max value for the signal.
Declaration
public override float MaxValue { get; }
Property Value
Type | Description |
---|---|
Single |
Overrides
MinValue
Gets the min value for the signal.
Declaration
public override float MinValue { get; }
Property Value
Type | Description |
---|---|
Single | The Min value. |
Overrides
Methods
Get()
Gets the digital value of the DigitalSignal.
Declaration
public int Get()
Returns
Type | Description |
---|---|
Int32 |
Invert()
Inverts the value of the digital signal.
Declaration
public void Invert()
Pulse()
Generates a pulse on the digital signal.
Declaration
public void Pulse()
Pulse(Int32)
Generates a pulse on a digital signal for a specific period of time.
Declaration
public void Pulse(int time)
Parameters
Type | Name | Description |
---|---|---|
Int32 | time | Time of pulse in milliseconds. |
Reset()
Sets the value of the digital signal to 0.
Declaration
public void Reset()
Set()
Sets the value of the digital signal to 1.
Declaration
public void Set()