IAdsHandleTryWrite Method

Writes the value data synchronously that is represented in the writeBuffer to the symbol with the specified variableHandle.


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

Syntax

C#

AdsErrorCode TryWrite(
    uint variableHandle,
    ReadOnlyMemory<byte> writeBuffer
)

Parameters

variableHandle  UInt32

The variable handle.

writeBuffer  ReadOnlyMemoryByte

The write buffer / value.

Return Value

AdsErrorCode
The ADS error code.

Reference

IAdsHandle Interface TwinCAT.Ads Namespace

Beckhoff Automation GmbH & Co. KG 2001-2026