ServerSymbolFactory.AddSymbol Method (String, String, String)

Adds and registers a ISymbol.

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

Syntax

C#

public IAddSymbolicInformation AddSymbol(
    string instancePath,
    string dataType,
    string dataArea
)

Parameters

instancePath

Type: System.String
The instancePath.

dataType

Type: System.String
The name of the already registered DataType

dataArea

Type: System.String
The data area.

Return Value

Type: IAddSymbolicInformation
The self-referential IAddSymbolicInformationobject to support method chaining/cascading.

Implements

IAddSymbolicInformation.AddSymbol(String, String, String)

Exceptions

Exception

Condition

ArgumentOutOfRangeException

dataArea - Cannot find DataArea'{dataArea}'

DataTypeException

DataType '{dataType}' not found!

Remarks

The address in the DataArea will be calculated automatically (indexGroup, indexOffset).

Reference

ServerSymbolFactory Class

AddSymbol Overload

TwinCAT.Ads.Server.TypeSystem Namespace