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

ADS · 0 次阅读

AdsClient.ReadValueAsync<T>(String, CancellationToken) Method

Read value as an asynchronous operation.


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

Syntax

C#

public Task<ResultValue<T>> ReadValueAsync<T>(
string instancePath,
CancellationToken cancel
)

Parameters

instancePath  String

Name of the ADS symbol.

cancel  CancellationToken

The cancel token.

Type Parameters

T

The value type.

Return Value

Task<ResultValue<T>>
A Task<ResultValue`1> representing the asynchronous operation.

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