Hi,
I am currently running Twincat 3.1.4022.22. I have a C++ module that connects to TwinCAT.
I was able to run the ADS server example (https://infosys.beckhoff.com/e…7021598582264587.html&id=) and can copy the ADS Port number from the Parameter (Online) section that I can then use in my C# application successfully.
However, does anyone know how the C# code can acquire the ADS port programmatically instead of manually? The ADS port currently gets randomly generated and assigned automatically each time TwinCAT is activated in "Run Mode".
Thanks,
Debjit