IAdsHandleReadWrite Method

Writes data synchronously to an ADS device and then Reads data from that target.


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

Syntax

C#

int ReadWrite(
    uint variableHandle,
    Memory<byte> readBuffer,
    ReadOnlyMemory<byte> writeBuffer
)

Parameters

variableHandle  UInt32

Variable handle.

readBuffer  MemoryByte

The read buffer.

writeBuffer  ReadOnlyMemoryByte

The write buffer.

Return Value

Int32
Number of successfully returned data bytes.

Reference

IAdsHandle Interface TwinCAT.Ads Namespace TryReadWrite(UInt32, MemoryByte, ReadOnlyMemoryByte, Int32) ReadWriteAsync(UInt32, MemoryByte, ReadOnlyMemoryByte, CancellationToken)

Beckhoff Automation GmbH & Co. KG 2001-2026