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 |
dataType |
Type: System.String |
dataArea |
Type: System.String |
Return Value
Type: IAddSymbolicInformation
The self-referential IAddSymbolicInformationobject
to support method chaining/cascading.
Exceptions
Exception |
Condition |
---|---|
dataArea - Cannot find DataArea'{dataArea}' | |
DataType '{dataType}' not found! |
Remarks
The address in the DataArea will be calculated automatically (indexGroup, indexOffset).