ServerSymbolFactory.CreateSymbol Method (String, String, IDataType, UInt32, UInt32)

Creates the symbol.

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

Syntax

C#

public Symbol CreateSymbol(
    string instanceName,
    string instancePath,
    IDataType dataType,
    uint indexGroup,
    uint indexOffset
)

Parameters

instanceName

Type: System.String
Name of the instance.

instancePath

Type: System.String
The instance path.

dataType

Type: TwinCAT.TypeSystem.IDataType
Type of the data.

indexGroup

Type: System.UInt32
The index group.

indexOffset

Type: System.UInt32
The index offset.

Return Value

Type: Symbol
Symbol.

Exceptions

Exception

Condition

ArgumentNullException

instanceName

ArgumentNullException

dataType

NotSupportedException

DataType is not supported!

Reference

ServerSymbolFactory Class

CreateSymbol Overload

TwinCAT.Ads.Server.TypeSystem Namespace