IAccessorRawValue.TryWriteArrayElementRaw Method

Writes an array element value from raw memory asynchronously to the ADS Device.

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

Syntax

C#

int TryWriteArrayElementRaw(
    IArrayInstance arrayInstance,
    int[] indices,
    ReadOnlyMemory<byte> writeBuffer,
    out DateTimeOffset? timeStamp
)

Parameters

arrayInstance

Type: TwinCAT.TypeSystem.IArrayInstance
The array instance.

indices

Type: .System.Int32.
The indices of the array element.

writeBuffer

Type: System.ReadOnlyMemory.Byte.
The write buffer containing the data to write.

timeStamp

Type: System.Nullable.DateTimeOffset..
Write time / timestamp

Return Value

Type: Int32
Error code. 0 represents succeed.

Reference

IAccessorRawValue Interface

TwinCAT.ValueAccess Namespace