AdsSymbolicServer.SetValue Method (String, Object)

Sets the value of the symbol.

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

Syntax

C#

public AdsErrorCode SetValue(
    string instancePath,
    Object value
)

Parameters

instancePath

Type: System.String
The instance path.

value

Type: System.Object
The value.

Return Value

Type: AdsErrorCode

Exceptions

Exception

Condition

SymbolException

Symbol '{instancePath}' not found! - null

Remarks

Call this if the Server has to store a new Value of the symbol internally.

Reference

AdsSymbolicServer Class

SetValue Overload

TwinCAT.Ads.Server Namespace