ServerSymbolFactory.AddSymbol Method (String, IDataType, DataArea)

Adds and registers a symbol

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,
    IDataType dataType,
    DataArea dataArea
)

Parameters

instancePath

Type: System.String
The InstancePath (FullPath) to the symbol.

dataType

Type: TwinCAT.TypeSystem.IDataType
The (already registered) DataType

dataArea

Type: TwinCAT.Ads.Server.TypeSystem.DataArea
The data area.

Return Value

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

Implements

IAddSymbolicInformation.AddSymbol(String, IDataType, DataArea)

Remarks

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

Reference

ServerSymbolFactory Class

AddSymbol Overload

TwinCAT.Ads.Server.TypeSystem Namespace