TcAdsSymbolInfoLoader.GetFirstSymbol Method

Call this method to get the first symbol.

Namespace:  TwinCAT.Ads
Assembly:  TwinCAT.Ads (in TwinCAT.Ads.dll) Version: 4.3.0.0

Syntax

C#

public TcAdsSymbolInfo GetFirstSymbol(
    bool forceReload
)

VB

Public Function GetFirstSymbol ( 
    forceReload As Boolean
) As TcAdsSymbolInfo

Parameters

forceReload

Type: System.Boolean
True, if a (new) loading of the symbol information from the server is required.

Return Value

Type: TcAdsSymbolInfo
Returns the first symbol or null if no symbols are available.

Remarks

If no symbols have been loaded before, the symbols are loaded from the server, regardless of the parameter forceReload.

TcAdsSymbolInfoLoader.GetFirstSymbol Method 1:

PLC

Please attend to the PLC Control that the 'Symbol-Download' under Project / Options / TwinCAT is activated. For further information please see the manual TwinCAT PLC Control.

TcAdsSymbolInfoLoader.GetFirstSymbol Method 2:

NC

The Symbol download has to be activated at each axis. This can de done in the configuration dialog of the axis under ‚General'. The field ‚Create Symbols' has to be marked. See manual of the TwinCAT System Manager.

Reference

TcAdsSymbolInfoLoader Class

TwinCAT.Ads Namespace