IConnection Interface

Interface IConnection

Namespace:  TwinCAT
Assembly:  TwinCAT.Ads.Abstractions (in TwinCAT.Ads.Abstractions.dll) Version: 6.0.328+39e3229

Syntax

C#

public interface IConnection : IConnectionStateProvider

The IConnection type exposes the following members.

Properties

 

Name

Description

IConnection Interface 1:

IConnection Interface 2:

ConnectionState

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

IConnection Interface 3:

DefaultValueEncoding

Gets the default value encoding.

IConnection Interface 4:

Id

Gets the Connection Identifier .

IConnection Interface 5:

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 6:

Session

Gets the session that initiated this IConnection

IConnection Interface 7:

Timeout

Gets the timeout (in milliseconds)

Methods

 

Name

Description

IConnection Interface 8:

Close

Closes this IConnection

IConnection Interface 9:

Connect

(Re)Connects the IConnection when disconnected.

IConnection Interface 10:

Disconnect

Disconnects this IConnection.

Events

 

Name

Description

IConnection Interface 11:

IConnection Interface 12:

ConnectionStateChanged

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

Reference

TwinCAT Namespace