ITcAdsRawCreateVariableHandleAsync Method

Generates a unique handle for an ADS variable (asynchronously)


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

Syntax

C#

Task<ResultHandle> CreateVariableHandleAsync(
    string variableName,
    CancellationToken cancel
)

Parameters

variableName  String

Name of the ADS variable

cancel  CancellationToken

The cancellation token.

Return Value

Task ResultHandle
A task that represents the asynchronous 'ReadState' operation. The ResultHandle parameter contains the handle Handle and the ErrorCode of the ADS communication after execution.

Reference

ITcAdsRaw Interface TwinCAT.Ads Namespace

Beckhoff Automation GmbH & Co. KG 2001-2026