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

ADS · 0 次阅读

IAdsSymbolicAccess.ReadValue<T>(String) Method

Reads the value of a symbol and returns the value as specified type.


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

Syntax

C#

T ReadValue<T>(
string instancePath
)

Parameters

instancePath  String

Name of the ADS symbol.

Type Parameters

T

The value type

Return Value

T
Value of the symbol

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