Closed P3li77ari closed 4 months ago
hello, thanks for your issue,. In order to assist with issue management, please keep the issue tracker reserved for bugs and feature requests. For any questions, particularly around usage, route creation and ads error messages when reading or writing variables, please use Stack Overflow tagging the question with twincat-ads and state you are using the pyads library.
Have you checked that you have a route to your PLC set up when connecting remotely https://pyads.readthedocs.io/en/latest/documentation/routing.html#creating-routes-on-windows. When you say local, do you mean you are running python on the same windows PC as the Beckhoff PLC? If so, please remove the IP address from the Connection line.
Hello everyone, I am unable to connect to local or remote TwinCat PLC. I am working with Windows 11, Python 3.12.4. Currently, the code looks like this:
Port is number 851 as following.
The traceback is:
I took IpAddress data from ipconfig and AmsNetId from Router>Change AMS ID
Local PLC is running as you can see here:
I also tried simple commands like
pyads.open_port()
Traceback in this case is the following:
Same issue happens even working with a remote target, where I can see the route connected and running. Thanks for your kind help.