AdsClientCreateVariableHandle Method

Determines the Symbol handle by its instance path synchronously.


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

Syntax

C#

public uint CreateVariableHandle(
    string symbolPath
)

Parameters

symbolPath  String

SymbolName / InstancePath.

Return Value

UInt32
The symbols/variable handle

Implements

IAdsHandleCreateVariableHandle(String)

Remarks

It is a good practice to release all variable handles after use to regain internal resources in the TwinCAT subsystem. The composite method to this CreateVariableHandle(String) is the DeleteVariableHandle(UInt32)

Reference

AdsClient Class TwinCAT.Ads Namespace DeleteVariableHandle(UInt32) CreateVariableHandleAsync(String, CancellationToken) TryCreateVariableHandle(String, UInt32)

Beckhoff Automation GmbH & Co. KG 2001-2026