Infosys在阅读器中打开 / AI 翻译

ADS · 0 次阅读

IAdsHandleAccess.CreateVariableHandle Method

Generates a unique handle for an ADS variable.

Namespace:  TwinCAT.Ads
Assembly:  TwinCAT.Ads (in TwinCAT.Ads.dll) Version: 4.3.0.0

Syntax

C#

int CreateVariableHandle(
    string variableName
)

VB

Function CreateVariableHandle ( 
    variableName As String
) As Integer

Parameters

variableName

Type: System.String
Name of the ADS variable

Return Value

Type: Int32
The handle of the ADS Variable.

Exceptions

Exception

Condition

AdsErrorException

Thrown when the ADS call fails.