AdsSetFirstDynSymbol
The list of declared variables can be read from an ADS device with this method.
object.AdsSetFirstDynSymbol(bForceReload As Boolean) As Long
Parameter
bForceReload
[in] TRUE if a (new) loading of the symbol information from the server is desired. If no symbol information is available yet, it will be loaded independently from bForceReload.
Return value
See ADS error codes
Comments
On the method call of AdsSetFirstDynSymbol() the internal "pointer" to the current symbol, which can be loaded with AdsGetNextDynSymbol(), is set back to the beginning.
Note on PLC: Ensure that 'Symbol download' is enabled in PLC Control under Project / Options / TwinCAT. More detailed information can be found in the PLC Control manual.
Note on NC: In the System Manager the symbol download must be enabled for each axis. This can be specified in the configuration dialog for the axis under 'General'. The 'Create symbols' box must be checked. See System Manager manual.