AdsClient.TryWrite Method (UInt32, ReadOnlyMemory.Byte.)

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

Namespace:  TwinCAT.Ads
Assembly:  TwinCAT.Ads (in TwinCAT.Ads.dll) Version: 6.0.328+39e3229

Syntax

C#

public 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.

Implements

IAdsHandle.TryWrite(UInt32, ReadOnlyMemory.Byte.)

Reference

AdsClient Class

TryWrite Overload

TwinCAT.Ads Namespace