Infosys在阅读器中打开 / AI 翻译

ADS · 0 次阅读

AdsClient.TryReadValue(ISymbol, Object) Method

Tries to read the value of a symbol and returns the value as boxed object.


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

Syntax

C#

public AdsErrorCode TryReadValue(
ISymbol symbol,
out Object?? value
)

Parameters

symbol  ISymbol

The symbol that should be read.

value  Object

The value.

Return Value

AdsErrorCode
The ADS Error Code

Remarks

This method automatically marshals the read values to appropriate .NET objects if possible. The overall behaviour is described here in the interface description.

See Also