TcAdsSymbolInfoLoader.GetSymbols Method

Loads the declared symbols from the ADS device and returns them as a collection of TcAdsSymbolInfo objects.

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

Syntax

C#

public TcAdsSymbolInfoCollection GetSymbols(
    bool forceReload
)

VB

Public Function GetSymbols ( 
    forceReload As Boolean
) As TcAdsSymbolInfoCollection

Parameters

forceReload

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

Return Value

Type: TcAdsSymbolInfoCollection
A collection of TcAdsSymbolInfo objects

Remarks

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

TcAdsSymbolInfoLoader.GetSymbols 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.GetSymbols 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