AdsConnectionTryReadState(StateInfo) Method
Reads the ADS status and the device status from an ADS server. Unlike the ReadState method this method does not call an exception on failure. Instead an AdsErrorCode is returned. If the return value is equal to AdsErrorCode.NoError the call was successful.
Namespace: TwinCAT.Ads
Assembly: TwinCAT.Ads (in TwinCAT.Ads.dll)
Version: 7.0.0+e56d35ccc4675faac24789a4aab60071fc61d470
Syntax
C#
public AdsErrorCode TryReadState(
out StateInfo stateInfo
)Return Value
AdsErrorCode
AdsErrorCode
of the ADS read state call. Check for NoError to see if
call was successful.
Remarks
Not all ADS Servers support the State ADS Request
Reference
AdsConnection Class TryReadState Overload TwinCAT.Ads Namespace
Beckhoff Automation GmbH & Co. KG 2001-2026