Code Monkey home page Code Monkey logo

Comments (8)

pbruenn avatar pbruenn commented on September 18, 2024 2

Yes, on Windows or TC/BSD you can build with -Dtcadsdll_include=c:\TwinCAT\AdsApi\TcAdsDll\Include -Dtcadsdll_lib=c:\TwinCAT\AdsApi\TcAdsDll\x64\lib, which will then use the TwinCAT Router.

Take a look into our internal CI scripts:
TC/BSD:
https://github.com/Beckhoff/ADS/blob/master/.gitlab-ci.yml#L68-L74

Windows (Is essentially the same but looks so complicated because of our CI setup):
https://github.com/Beckhoff/ADS/blob/master/.gitlab-ci.yml#L101-L105

from ads.

pbruenn avatar pbruenn commented on September 18, 2024

This is a limitation of TwinCAT on the PLC side. TwinCAT doesn't support multiple ADS connections from the same IP. So you have to either use multiple IPs on your client running the applications or you have to use another protocol such as MQTT https://infosys.beckhoff.com/english.php?content=../content/1033/tc3_ads_over_mqtt/index.html&id=

from ads.

AlessandroMenon avatar AlessandroMenon commented on September 18, 2024

Thank you for your answer. But I don't understand why if I use two instances of the .NET application I don't encounter this problem. It only happens to me if either application uses https://github.com/Beckhoff/ADS. Could it be because the .NET version has a real Ads Router implemented?

from ads.

pbruenn avatar pbruenn commented on September 18, 2024

Because the .NET application is "cheating" and implements an ADS router ;-)

from ads.

AlessandroMenon avatar AlessandroMenon commented on September 18, 2024

Is there any way to use an ADS router in C++? Do I have to compile https://github.com/Beckhoff/ADS with the define USE_TWINCAT_ROUTER set and have TwinCAT installed on the machine?

from ads.

fengyc avatar fengyc commented on September 18, 2024

Try this https://github.com/fengyc/ads-proxy , I don't think it is an elegant solution but it works

from ads.

bsteenput avatar bsteenput commented on September 18, 2024

Hello,

Is it possible to have the ads router in linux ? I'm trying to have the same machine to access different tasks running in the PLC the first process on the linux machine gets disconnected when the second process connect. I'm using PyAds on a ubuntu machine.

My problem is the same as the one describe here : stlehmann/pyads#331

Thanks in advance for you help,
Bertrand

from ads.

tboegi avatar tboegi commented on September 18, 2024

Did you try the suggestion from stlehmann/pyads#331 ?

Otherwise:
https://github.com/birkenfeld/ads_forwarder_rs

from ads.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.