AdsConnectionTryReadState Method

Overload List

 

Name

Description

TryReadState(StateInfo)

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.

TryReadState(Int32, StateInfo)

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.

Reference

AdsConnection Class TwinCAT.Ads Namespace

Beckhoff Automation GmbH & Co. KG 2001-2026