IAdsSymbolicAccessTryWriteValue(String, Object) Method

Tries to write a (boxed) value to the symbol instance specified by its instance/symbol path.


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

Syntax

C#

AdsErrorCode TryWriteValue(
    string symbolPath,
    Object value
)

Parameters

symbolPath  String

Name of the ADS symbol.

value  Object

Object holding the value to be written to the ADS symbol

Return Value

AdsErrorCode
AdsErrorCode.

Remarks

This method automatically marshals the value from .NET objects into the TwinCAT representation if possible. The overall behaviour is described here in the interface description.

Reference

IAdsSymbolicAccess Interface TryWriteValue Overload TwinCAT.Ads Namespace WriteValue(String, Object) WriteValueAsyncT(String, T, CancellationToken)

Beckhoff Automation GmbH & Co. KG 2001-2026