AdsClient.TryWriteValue.T. Method (String, T)

Writes the passed object value to the specified ADS symbol.The parameter type must have the same layout as the ADS symbol.

Namespace:  TwinCAT.Ads
Assembly:  TwinCAT.Ads (in TwinCAT.Ads.dll) Version: 6.0.328+39e3229

Syntax

C#

public AdsErrorCode TryWriteValue<T>(
    string name,
    T value
)

Parameters

name

Type: System.String
Name of the ADS symbol.

value

Type: T
Object holding the value to be written to the ADS symbol

Type Parameters

T

The value type.

Return Value

Type: AdsErrorCode
AdsErrorCode.

Implements

IAdsSymbolicAccess.TryWriteValue.T.(String, T)

Reference

AdsClient Class

TryWriteValue Overload

TwinCAT.Ads Namespace