Class IOConnection
Represents a connection from from a source signal to a target signal.
Namespace: ABB.Robotics.RobotStudio.Stations
Assembly: ABB.Robotics.RobotStudio.Stations.dll
Syntax
sistent("TIOConnection")]
public class IOConnection
Constructors
IOConnection(ProjectObject, String, ProjectObject, String)
Creates a new instance of the IOConnection class.
Declaration
public IOConnection(ProjectObject sourceObject, string sourceSignal, ProjectObject targetObject, string targetSignal)
Parameters
Type | Name | Description |
---|---|---|
ProjectObject | sourceObject | The object that contains the source signal.
|
String | sourceSignal | The name of the source signal. |
ProjectObject | targetObject | The object that contains the target signal or property.
|
String | targetSignal | The name of the target signal (or property, see remarks).
|
IOConnection(ProjectObject, String, ProjectObject, String, Boolean)
Creates a new instance of the IOConnection class.
Declaration
public IOConnection(ProjectObject sourceObject, string sourceSignal, ProjectObject targetObject, string targetSignal, bool allowCycle)
Parameters
Type | Name | Description |
---|---|---|
ProjectObject | sourceObject | The object that contains the source signal.
|
String | sourceSignal | The name of the source signal. |
ProjectObject | targetObject | The object that contains the target signal or property.
|
String | targetSignal | The name of the target signal (or property, see remarks).
|
Boolean | allowCycle | Specifies if the target signal is allowed to be set more than once in the same execution context. |
Properties
AllowCycle
Returns a value indicating if the target signal is allowed to be set more than once in the same context.
Declaration
public bool AllowCycle { get; }
Property Value
Type | Description |
---|---|
Boolean |
Parent
Declaration
public ProjectObject Parent { get; }
Property Value
Type | Description |
---|---|
ProjectObject |
SourceObject
Returns the object on which the source IOSignal can be found
Declaration
public ProjectObject SourceObject { get; }
Property Value
Type | Description |
---|---|
ProjectObject |
SourceObjectName
Returns the name of the source object. Typically used for debugging if the object has been removed.
Declaration
public string SourceObjectName { get; set; }
Property Value
Type | Description |
---|---|
String |
SourceSignal
Returns the name of the signal that acts as the connection source
Declaration
public string SourceSignal { get; }
Property Value
Type | Description |
---|---|
String |
TargetObject
Returns the object on which target IOSignal can be found
Declaration
public ProjectObject TargetObject { get; }
Property Value
Type | Description |
---|---|
ProjectObject |
TargetObjectName
Returns the name of the target object. Typically used for debugging if the object has been removed.
Declaration
public string TargetObjectName { get; set; }
Property Value
Type | Description |
---|---|
String |
TargetSignal
Returns the name of the signal that acts as the connection target
Declaration
public string TargetSignal { get; }
Property Value
Type | Description |
---|---|
String |
Methods
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String |
Overrides
Update()
Updates the target signal with the value of the source signal.
Declaration
public void Update()
Remarks
There is normally no need to call this method since the connection is updated automatically whenever the source signal changes.