AdsClientTryWriteValueT(String, T) Method

Tries to Write a (typed) value to the symbol instance specified by its instance/symbol path.


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

Syntax

C#

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

Parameters

name  String

The name.

value  T

Object holding the value to be written to the ADS symbol

Type Parameters

T

The value type.

Return Value

AdsErrorCode
AdsErrorCode.

Implements

IAdsSymbolicAccessTryWriteValueT(String, T)

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

AdsClient Class TryWriteValue Overload TwinCAT.Ads Namespace WriteValueT(String, T)TryWriteValueT(String, T)

Beckhoff Automation GmbH & Co. KG 2001-2026