Open kkk3449 opened 3 months ago
Is your PLC in RUN mode?
Is your PLC in RUN mode?
Switching to run mode and executing the code, methods 1 (C++ ADS) and 2 (Python) worked well. Method 3 (ROS) still encounters a 1797 error, but I will try modifying variables to fix it. Before editing the .xml file, it did not work even in RUN mode, but it seems to work after modifying the .xml file. Thank you.
Our current goal is to establish TCP/IP communication through an Ethernet cable between an Intel NUC (Ubuntu 20.04) - BECKHOFF PC CX5140 (TwinCAT3). The most desired method of communication is ROS-TwinCAT3.![connect_img](https://github.com/Beckhoff/ADS/assets/60597598/560b9825-8161-4f4e-9680-1b62ab9c6863)
For communication, we have: Successfully made the ADS git on the Ubuntu PC,
Communicated using ADSLib based on C++ for ROS,
Communicated using pyads,
Communicated using C++ based ADSLib from the ADS GitHub,
Added a route connection on the BECKHOFF PC.
However, all attempts have failed due to the same error code 6. We have disabled the firewalls on both the Ubuntu and BECKHOFF PCs.
We have set up the following in this order.
Add Route![image-1712123642048 jpg2826945836975280154](https://github.com/Beckhoff/ADS/assets/60597598/9bc5350c-1bec-44c7-b280-4ac54a0ddaaf)
Also add at StaticRouts.xml( I saw another Issues post and then setting it)![image-1712122661348 jpg8454602938898796227](https://github.com/Beckhoff/ADS/assets/60597598/c505c0e1-0642-4ffc-9c38-3e6fc68f08f8)
ubuntu : 192.168.0.5
AmsnetId: 192.168.0.5.1.1![Untitled (1)](https://github.com/Beckhoff/ADS/assets/60597598/98c872b9-d612-41c3-9faf-a13460f9689c)
check Routs![image-1712122585335 jpg5527650708302205370](https://github.com/Beckhoff/ADS/assets/60597598/7c04a850-b05d-4d7a-b2e1-d3ee843bd5b0)
try method 1 : example.cpp![Untitled (2)](https://github.com/Beckhoff/ADS/assets/60597598/d74a8787-9483-4771-97e4-706fbccc1b72)
ADSError: error code 6![Untitled (3)](https://github.com/Beckhoff/ADS/assets/60597598/15d5b602-0bff-46a1-b78c-f93e43df6b08)
try method 2 :pyads
error code 6 : ADSError: target port not found ADS Server not started (6).![Untitled (4)](https://github.com/Beckhoff/ADS/assets/60597598/bdd164de-8a26-4891-8638-32bc8ac37381)
try method3 : ros (repo: [twincat_talker](https://github.com/lemanhtrung/twincat_talker))![Untitled (5)](https://github.com/Beckhoff/ADS/assets/60597598/96639573-f080-4ff0-a90a-098213d11b53)
error : error code 6
control pc![Untitled (6)](https://github.com/Beckhoff/ADS/assets/60597598/fc00bb3e-2305-4a0d-a294-7cad06cd05cd)
We are able to successfully send pings and it feels like we have tried every possible method. Is there any other solution you could suggest? Thank you.![Untitled](https://github.com/Beckhoff/ADS/assets/60597598/c742ac18-bc41-4f02-8bde-0b9e29a8e078)