-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
no connection to Beckhoff PLC Simulation #25
Comments
Are you sure that you only have one connection at time? Only one connection is supported if no TwinCAT router installed (so make sure the other ads library is not running at the same time and connecting to this target). Can you set debugging level to 3 and post the console output? |
The other ads lib is not running and I have also removed the node configuration from the ads lib. After that, I have restarted the TwinCAT-System and the Router. Here is the console output:
|
Hi
Please get the ads-client logs from node-red console/logs.
See:
jisotalo/ads-client#99 (comment)
|
|
Thanks. Please try to set manual ADS port. Se set the |
With the localAdsPort it is not working:
|
Here is the tcpdump of the connection: `root@Ubuntu22:~# tcpdump tcpdump: verbose output suppressed, use -v[v]... for full protocol decode ` |
Hi! Are you absolute sure that the localAmsNetId and localAdsPort settings are saved? Because from debug logs it seems that it's still trying to register a port from target. There is If they are saved and should be OK, then there might be a bug in this Node-RED library and the settings are not used. |
Glad to hear it's working! The reason you need to give these manually is that you don't have a AMS router running on your device. The connection object should contain localAmsNetId and localAdsPort but in your picture it's not connected. They are set after successful connection if I remember right. |
Hi,
I have following problem with the ads-client in node-red (v3.0.2). I use an Advantech IoT Router ICR3231W with Node-Red installed. I have also installed the node-red-contrib-ads and the node-red-contrib-ads-client. My Beckhoff TwinCAT 3.1.0.0 (EventLoggerVersion: 4024.47) is installed on a Windows 10x64 Lenovo Notebook. Router and Notebook is connected via a Netgear unmanaged switch. Firewall is disabled on both sides. At the TwinCAT ADS Router I have configured a route to my Node-Red
With the node-red-contrib-ads lib it was possible to get a connection to the PLC via the ADS System node. I was also able to read global variables from the PLC Simulation. I have configured the node as followed:
![image](https://private-user-images.githubusercontent.com/136588106/245765838-50133bc5-dc6e-4d7b-bb08-3953813c128e.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjE1MDYzNzksIm5iZiI6MTcyMTUwNjA3OSwicGF0aCI6Ii8xMzY1ODgxMDYvMjQ1NzY1ODM4LTUwMTMzYmM1LWRjNmUtNGQ3Yi1iYjA4LTM5NTM4MTNjMTI4ZS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNzIwJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDcyMFQyMDA3NTlaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1iZGIzNWMxMTc3ZTJiNzAyNmI3OTFiODI3ZTE3YmI5NjZjNzdkYWQ4MjA1ZjE3ZGZhZjIxOWUzNTRiYjRmZjhjJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.TAw03tQjBMHMo2Sh0ifgIpxxHpq9beXDdiqS-LKeJ1o)
With the node-red-contrib-ads-client I am not able to get a connection to the PLC SIM. I use the ADS - Connection Status node.
Why is it working with the node-red-contrib-ads but not with the node-red-contrib-ads-client. When I started testing with the node-red-contrib-ads-client I have restarted the PLC Sim, restarted the Router where Node-Red is running on and deleted the configuration from the node-red-contrib-ads in Node-Red.
Thank you in advance!
Kind Regards,
Patrick
The text was updated successfully, but these errors were encountered: