AdsConnection.Write(UInt32, ReadOnlyMemory<Byte>) Method

Writes data synchronously to an ADS device.


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

Syntax

C#

public void Write(
uint variableHandle,
ReadOnlyMemory<byte> writeBuffer
)

Parameters

variableHandle  UInt32

Handle of the ADS variable

writeBuffer  ReadOnlyMemory<Byte>

The write buffer / value to be written

Implements

IAdsHandle.Write(UInt32, ReadOnlyMemory<Byte>)

Exceptions

Exception

Condition

ObjectDisposedException

ClientNotConnectedException

See Also

Reference

AdsConnection Class Write Overload TwinCAT.Ads Namespace TryWrite(UInt32, ReadOnlyMemory<Byte>) WriteAsync(UInt32, ReadOnlyMemory<Byte>, CancellationToken)

Beckhoff Automation GmbH & Co. KG 2001-2026