IAdsHandle.TryWrite 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: 6.0.328+39e3229

Syntax

C#

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

Parameters

variableHandle

Type: System.UInt32
The variable handle.

writeBuffer

Type: System.ReadOnlyMemory.Byte.
The write buffer / value.

Return Value

Type: AdsErrorCode
The ADS error code.

Reference

IAdsHandle Interface

TwinCAT.Ads Namespace