AdsConnection.WriteControlAsync Method (AdsState, UInt16, ReadOnlyMemory`1, Void)

Namespace:  TwinCAT.Ads
Assembly:  TwinCAT.Ads (in TwinCAT.Ads.dll) Version: 5.0.294+Branch.releases-5.0.Sha.90bb9a1b43b6095934fddca3e72bc0ea15da1c14

Syntax

C#

public Task<ResultAds> WriteControlAsync(
    AdsState adsState,
    ushort deviceState,
    ReadOnlyMemory writeBuffer,
    void cancel
)

Parameters

adsState

Type: TwinCAT.Ads.AdsState

deviceState

Type: System.UInt16

writeBuffer

Type: ReadOnlyMemory

cancel

Type: System.Void

Return Value

Type: Task.ResultAds.

Reference

AdsConnection Class

WriteControlAsync Overload

TwinCAT.Ads Namespace