IAdsSymbolicAccess.TryWriteValue Method (String, Object)

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.Abstractions (in TwinCAT.Ads.Abstractions.dll) Version: 6.0.328+39e3229

Syntax

C#

AdsErrorCode TryWriteValue(
    string symbolPath,
    Object value
)

Parameters

symbolPath

Type: System.String
Name of the ADS symbol.

value

Type: System.Object
Object holding the value to be written to the ADS symbol

Return Value

Type: AdsErrorCode
AdsErrorCode.

Reference

IAdsSymbolicAccess Interface

TryWriteValue Overload

TwinCAT.Ads Namespace

IAdsSymbolicAccess.WriteValue(String, Object)

IAdsSymbolicAccess.WriteValueAsync.T.(String, T, CancellationToken)