AdsConnection.ReadAnyString Method (UInt32, Int32, Encoding)

Reads a string from the specified symbol/variable.

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

Syntax

C#

public string ReadAnyString(
    uint variableHandle,
    int len,
    Encoding encoding
)

Parameters

variableHandle

Type: System.UInt32
The variable handle.

len

Type: System.Int32
The length.

encoding

Type: System.Text.Encoding
The encoding.

Return Value

Type: String
The string value.

Implements

IAdsAnyAccess.ReadAnyString(UInt32, Int32, Encoding)

Exceptions

Exception

Condition

ObjectDisposedException

ClientNotConnectedException

Reference

AdsConnection Class

ReadAnyString Overload

TwinCAT.Ads Namespace