Beckhoff / TF6000_ADS_DOTNET_V5_Samples

Sample code for the Version 6.X series of the TwinCAT ADS .NET Packages
https://infosys.beckhoff.com/content/1033/tc3_ads.net/9407515403.html?id=6770980177009971601
BSD Zero Clause License
37 stars 15 forks source link

AdsSymbolicServer sample doesn't provide symbolic information #11

Closed drvic10k closed 2 years ago

drvic10k commented 2 years ago

Steps to reproduce:

  1. host AmsTcpIpRouter in a standalone service
  2. run the AdsSymbolicServerSample
  3. use the powershell for testing as described in the readme.md
  4. call get-tcDataType -> empty result, same for Get-TcSymbol –recurse
  5. call Read-TcValue -path Main.string1
Read-TcValue : Reading Symbols from 'Session ID:12 (127.0.0.1.1.1:25100)' failed (Symbol 'Main.string1' not found.
Target '127.0.0.1.1.1:25100 doesn't provide symbolic information!)!
At line:1 char:12
+ $session | Read-TcValue -path Main.string1
+            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidResult: (Session ID:12 (127.0.0.1.1.1:25100):AdsSession) [Read-TcValue], ErrorExc
   eption
    + FullyQualifiedErrorId : DestinationNotReachable,TwinCAT.Management.Automation.ReadValueCmdlet

Read-TcValue : Symbol 'Main.string1' not found. Target '127.0.0.1.1.1:25100 doesn't provide symbolic information!
At line:1 char:12
+ $session | Read-TcValue -path Main.string1
+            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Read-TcValue], ErrorException
    + FullyQualifiedErrorId : TwinCAT.Core.ErrorException,TwinCAT.Management.Automation.ReadValueCmdlet
RalfHeitmann commented 2 years ago

Should work now with the latest commit.