Namespace: IPS7Lnk.Advanced
Assemblies: IPS7LnkNet.Advanced.dll, IPS7LnkNet.Advanced.dll
The PlcDeviceConnectionChannel type exposes the following members.
Initializes a new instance of the PlcDeviceConnectionChannel class using the specified connection
.
C#
protected PlcDeviceConnectionChannel(PlcDeviceConnection connection)
Parameters
connection
PlcDeviceConnection
The PlcDeviceConnection from that the channel configuration is to be adopted.
Exceptions
The connection
is a null reference (Nothing in Visual Basic).
Gets the time that is used to detect a connection break.
C#
public int BreakDetectionTimeout { get; }
Property Value
The time in milliseconds to detect a connection break.
Gets the wait time before terminating the attempt to establish a connection.
C#
public int ConnectTimeout { get; }
Property Value
The time in milliseconds to wait for the connection to connect.
When implemented in a derived class, gets a value indicating whether the connection has been completly established to the device.
C#
public abstract bool IsConnected { get; }
Property Value
The value true, if the connection has been completly established; otherwise the value false.
Gets the wait time before terminating the attempt to receive data.
C#
public int ReceiveTimeout { get; }
Property Value
The time in milliseconds to wait for the connection to receive.
Gets an object that can be used to synchronize access to the PlcDeviceConnectionChannel.
C#
public object SyncRoot { get; }
Property Value
An object that can be used to synchronize access to the PlcDeviceConnectionChannel.
Gets the wait time before terminating the attempt to transmit data.
C#
public int TransmitTimeout { get; }
Property Value
The time in milliseconds to wait for the connection to transmit.
Gets a value indicating whether a connection break detection is to be used.
C#
public bool UseBreakDetection { get; }
Property Value
The value true, if a connection break detection is to be used; otherwise the value false.
Fully establishes a connection to a device.
C#
public PlcStatus Connect()
Returns
A PlcStatus instance which describes the outcome of the operation.
Exceptions
The channel has been disposed of.
Verifies whether the channel has been disposed of.
C#
protected void DenyIfIsDisposed()
Exceptions
The channel has been disposed of.
Releases the unmanaged resources used by the PlcDeviceConnectionChannel and optionally releases the managed resources.
C#
protected virtual void Dispose(bool disposing)
Parameters
disposing
Boolean
The value true to release both managed and unmanaged resources; otherwise the value false to release only unmanaged resources.
Evaluates the setup of the connection
specified to determine whether the configuration of this PlcDeviceConnectionChannel matches with the settings of the channel.
C#
public bool HasConfigurationOf(PlcDeviceConnection connection)
Parameters
connection
PlcDeviceConnection
The PlcDeviceConnection its setup is to compared with the setup of the channel.
Returns
The value true if the setup of the channel matches the setup of the connection
specified; otherwise the value false.
Remarks
Using this method the framework determines if an existing PlcDeviceConnectionChannel can be used for the connection
specified. By default this method evaluates a used IPDeviceEndPoint instance, its Address, Rack, Slot, LocalTSAP and RemoteTSAP.
Performs additional custom evaluation of the setup of the connection
specified to determine whether the configuration of a derivat of the PlcDeviceConnectionChannel matches with the settings of the channel.
C#
protected virtual bool HasConfigurationOfCore(PlcDeviceConnection connection)
Parameters
connection
PlcDeviceConnection
The PlcDeviceConnection its setup is to compared with the setup of the channel.
Returns
The value true if the setup of the channel matches the setup of the connection
specified; otherwise the value false. The default value returned by this method is true.
Establishes a connection to a device.
C#
public PlcStatus Open()
Returns
A PlcStatus instance which describes the outcome of the operation.
Exceptions
The channel has been disposed of.