AdsCommunicationStatistics Class

ADS Communication statistics

Inheritance Hierarchy

System.Object
  TwinCAT.AdsCommunicationStatistics
Namespace:  TwinCAT
Assembly:  TwinCAT.Ads (in TwinCAT.Ads.dll) Version: 6.0.328+39e3229

Syntax

C#

public class AdsCommunicationStatistics

The AdsCommunicationStatistics type exposes the following members.

Properties

 

Name

Description

AccessWaitTime

Gets the wait time for the next access (Resurrection time) if in Lost.

CommunicationErrorsSinceLastSucceeded

Gets the number of communication errors since the last successful access

ConnectionActiveSince

Gets the DateTime of the last connection activation.

ConnectionEstablishedAt

Gets the UTC time when the current connection was established.

ConnectionLostAt

Gets the connection lost time.

LastAccessAt

Gets the Time of the last read/write access

LastCommunicationErrorAt

Gets the last tripping error time.

LastErrorAt

Get the Time of the last occurred Error (Error response codes and tripping errors)

LastErrorCode

Gets error code of the last access.

LastSucceededAt

Gets the Date/Time of the last succeeded ADS communication/Roundtrip.

SessionEstablishedAt

Gets the UTC time when the session was established.

TotalCommunicationErrors

Gets the communication error count.

TotalConnectionLosses

Gets the connection lost count.

TotalCycles

Gets the total cycles/requests done so far by this session.

TotalErrors

Gets the total number of negative ADS responses.

TotalResurrections

Gets the number of resurrections on the AdsConnection

Methods

 

Name

Description

Equals

Determines whether the specified object is equal to the current object. (Inherited from Object.)

Finalize

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)

GetHashCode

Serves as the default hash function. (Inherited from Object.)

GetType

Gets the Type of the current instance. (Inherited from Object.)

MemberwiseClone

Creates a shallow copy of the current Object. (Inherited from Object.)

ToString

Returns a string that represents the current object. (Inherited from Object.)

Remarks

These statistics can be used for communication diagnosis. They contain Error/Succeed counts as well as Resurrection infos.

Reference

TwinCAT Namespace