AdsClientReadAnyString(UInt32, UInt32, Int32, Encoding) Method

Reads as string from a specified address.


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

Syntax

C#

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

Parameters

indexGroup  UInt32

The index group.

indexOffset  UInt32

The index offset.

len  Int32

The string length to be read.

encoding  Encoding

The string value encoding (IAdsConnection.DefaultValueEncoding if null)

Return Value

String
System.String.

Implements

IAdsAnyAccessReadAnyString(UInt32, UInt32, Int32, Encoding)

Exceptions

Exception

Condition

ObjectDisposedException

ClientNotConnectedException

Reference

AdsClient Class ReadAnyString Overload TwinCAT.Ads Namespace

Beckhoff Automation GmbH & Co. KG 2001-2026