AdsConnectionReadState Method

Reads the ADS status and the device status from an ADS server.


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

Syntax

C#

public StateInfo ReadState()

Return Value

StateInfo
The ADS statue and device status or an Exception with ErrorCode: DeviceServiceNotSupported.

Implements

IAdsStateProviderReadState

Exceptions

Exception

Condition

ObjectDisposedException

ClientNotConnectedException

Remarks

Not all ADS Servers support the State ADS Request.

Reference

AdsConnection Class ReadState Overload TwinCAT.Ads Namespace

Beckhoff Automation GmbH & Co. KG 2001-2026