TcAdsSymbolInfoLoader.GetSymbolCount Method

Call this method to get the number of declared symbols.

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

Syntax

C#

public int GetSymbolCount(
    bool forceReload
)

VB

Public Function GetSymbolCount ( 
    forceReload As Boolean
) As Integer

Parameters

forceReload

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

Return Value

Type: Int32
Returns the number of symbols.

Remarks

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

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