AdsConnection.ReadAnyString Method (UInt32, UInt32, Int32, Encoding)

Reads as string from a specified address.

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

Syntax

C#

public string ReadAnyString(
    uint indexGroup,
    uint indexOffset,
    int len,
    Encoding encoding
)

Parameters

indexGroup

Type: System.UInt32
The index group.

indexOffset

Type: System.UInt32
The index offset.

len

Type: System.Int32
The string length to be read.

encoding

Type: System.Text.Encoding
The encoding.

Return Value

Type: String
System.String.

Implements

IAdsAnyAccess.ReadAnyString(UInt32, UInt32, Int32, Encoding)

Exceptions

Exception

Condition

ObjectDisposedException

ClientNotConnectedException

Reference

AdsConnection Class

ReadAnyString Overload

TwinCAT.Ads Namespace