AdsConnectionReadState(Int32) 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(
    int timeout
)

Parameters

timeout  Int32

The timeout.

Return Value

StateInfo
The ADS statue and device status.

Implements

IAdsStateControlTimeoutReadState(Int32)

Exceptions

Exception

Condition

ObjectDisposedException

ClientNotConnectedException

Reference

AdsConnection Class ReadState Overload TwinCAT.Ads Namespace

Beckhoff Automation GmbH & Co. KG 2001-2026