AdsClientReadWrite(UInt32, MemoryByte, ReadOnlyMemoryByte) Method
Writes data synchronously to an ADS device and then Reads data from that target.
Namespace: TwinCAT.Ads
Assembly: TwinCAT.Ads (in TwinCAT.Ads.dll)
Version: 7.0.0+e56d35ccc4675faac24789a4aab60071fc61d470
Syntax
C#
public int ReadWrite(
uint variableHandle,
Memory<byte> readBuffer,
ReadOnlyMemory<byte> writeBuffer
)Parameters
|
variableHandle UInt32 |
Variable handle. |
|
The read buffer. | |
|
writeBuffer ReadOnlyMemoryByte |
The write buffer. |
Return Value
Int32
Number of successfully returned data bytes.
Reference
AdsClient Class ReadWrite Overload TwinCAT.Ads Namespace TryReadWrite(UInt32, MemoryByte, ReadOnlyMemoryByte, Int32) ReadWriteAsync(UInt32, MemoryByte, ReadOnlyMemoryByte, CancellationToken)
Beckhoff Automation GmbH & Co. KG 2001-2026