AdsConnection Properties

The AdsConnection type exposes the following members.

Properties

 

Name

Description

AccessWaitTime

Gets the access wait time.

ActiveSince

Gets the UTC time when tha last active/resurrected Connection was established

Address

Gets the AmsAddress of the ADS server.

ClientAddress

Get the AmsAddress of the ADS client.

ConnectionEstablishedAt

Gets the UTC time when the Connection was originally established.

ConnectionLostCount

Gets the connection lost count.

ConnectionLostTime

Gets the connection lost time.

ConnectionState

Gets the current Connection state of the AdsConnection

Disposed

Gets a value indicating whether this AdsConnection is disposed.

Id

Gets the AdsConnection identifier.

IsActive

Gets a value indicating whether communication is in active state

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.

IsLocal

Gets a value indicating whether the ADS client is connected to a ADS Server on the local computer.

IsLost

Gets a value indicating whether the communication is in lost / open state

IsReconnecting

Gets a value indicating whether communication is ready for reconnecting

Name

Gets the name.

ResurrectingTries

Gets the number of tries to resurrect the AdsConnection.

Resurrections

Gets the number of succeeded connection resurrections.

Session

Gets the Session object of the AdsConnection object.

State

Gets the current ConnectionState

Timeout

Gets the timeout (in milliseconds)

Reference

AdsConnection Class

TwinCAT.Ads Namespace