IAdsAnyAccessReadAnyString(UInt32, Int32, Encoding) Method

Reads a string from the specified symbol/variable.


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

Syntax

C#

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

Parameters

variableHandle  UInt32

The variable handle.

len  Int32

The length.

encoding  Encoding

The string value encoding (IAdsConnection.DefaultValueEncoding if null)

Return Value

String
The string value.

Reference

IAdsAnyAccess Interface ReadAnyString Overload TwinCAT.Ads Namespace

Beckhoff Automation GmbH & Co. KG 2001-2026