IConnection Interface

Interface IConnection


Namespace: TwinCAT
Assembly: TwinCAT.Ads.Abstractions (in TwinCAT.Ads.Abstractions.dll) Version: 7.0.0+e56d35ccc4675faac24789a4aab60071fc61d470

Syntax

C#

public interface IConnection : IConnectionStateProvider

The IConnection type exposes the following members.

Properties

 

Name

Description

IConnection Interface 1:

Configuration

Gets the configuration.

IConnection Interface 2:

IConnection Interface 3:

ConnectionState

Gets the current Connection state of the IConnectionStateProvider
(Inherited from IConnectionStateProvider)

IConnection Interface 4:

DefaultValueEncoding

Gets/Sets the default value encoding.

IConnection Interface 5:

Id

Gets the Connection Identifier .

IConnection Interface 6:

IsConnected

Gets a value indicating whether the local ADS port was opened successfully. It does not indicate if the target port is available. Use the method ReadState to determine if the target port is available.

IConnection Interface 7:

Logger

Gets the connection logger interface.

IConnection Interface 8:

LoggerFactory

Gets the logger factory.

IConnection Interface 9:

Session

Gets the session that initiated this IConnection

IConnection Interface 10:

SymbolEncoding

Gets/Sets the symbol encoding.

IConnection Interface 11:

Timeout

Gets the timeout (in milliseconds)

Methods

 

Name

Description

IConnection Interface 12:

Close

Closes this IConnection

IConnection Interface 13:

Connect

(Re)Connects the IConnection when disconnected.

IConnection Interface 14:

ConnectAndWaitAsync

Connects the and wait asynchronous.

IConnection Interface 15:

ConnectAsync

Connects the IConnection asynchronously when disconnected.

IConnection Interface 16:

Disconnect

Disconnects this IConnection.

IConnection Interface 17:

DisconnectAsync

Disconnects the IConnection when connected (asynchronously)

Events

 

Name

Description

IConnection Interface 18:

IConnection Interface 19:

ConnectionStateChanged

Occurs when connection status of the IConnectionStateProvider has been changed.
(Inherited from IConnectionStateProvider)

Reference

TwinCAT Namespace

Beckhoff Automation GmbH & Co. KG 2001-2026