Running TwinCAT 3 ADS Only (without XAR)Is there a way to increase the stack size in Twincat 3Creating library in TwinCAT 3Publish and subscribe variables between twincat 2 and twincat 3Pyads read value on notification: when TwinCat cycle occuredTwinCat Run Mode failing to start with adswarning 4131Twincat run mode error 1861TwinCAT: Running on isolated cores failedTwincat ADS event driven reading stops working after a while (Java)TwinCAT 3.0 Automation Interface without Visual Studio?TwinCAT 3 user control

What would it take to get a message to another star?

Would the USA be eligible to join the European Union?

What is the farthest a camera can see?

Causal Diagrams using Wolfram?

Weird resistor with dots around it

Identifying My Main Water Shutoff Valve / Setup

Why is the second S silent in "Sens dessus dessous"?

Boss wants me to ignore a software API license

Do I have to cite common CS algorithms?

How do some PhD students get 10+ papers? Is that what I need for landing good faculty position?

Global BGP Routing only by only importing supernet prefixes

Swap (and hibernation) on SSD in 2019?

Crippling fear of hellfire &, damnation, please help?

Scam? Phone call from "Department of Social Security" asking me to call back

How far did Gandalf and the Balrog drop from the bridge in Moria?

Will using a resistor in series with a LED to control its voltage increase the total energy expenditure?

Cases with long math equation

Why does the cable resistance jump from a low value to high value at a particular frequency?

Can lodestones be used to magnetize crude iron weapons?

Should I leave building the database for the end?

Installing Windows to flash UEFI/ BIOS, then reinstalling Ubuntu

Did Pope Urban II issue the papal bull "terra nullius" in 1095?

How can I communicate my issues with a potential date's pushy behavior?

Is it possible to arrive in the US without a C-1 visa for a transit flight



Running TwinCAT 3 ADS Only (without XAR)


Is there a way to increase the stack size in Twincat 3Creating library in TwinCAT 3Publish and subscribe variables between twincat 2 and twincat 3Pyads read value on notification: when TwinCat cycle occuredTwinCat Run Mode failing to start with adswarning 4131Twincat run mode error 1861TwinCAT: Running on isolated cores failedTwincat ADS event driven reading stops working after a while (Java)TwinCAT 3.0 Automation Interface without Visual Studio?TwinCAT 3 user control






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








0















I have a working C project which communicates with local or remote TwinCAT 3 systems using ADS C API (online examples work well too).



However, we are now trying to deploy the program to a different machine which only has TwinCAT ADS installed (as explained here under "Installation of TwinCAT 3 ADS only"). We have added routes on both machines. To simplify testing, we even disabled the firewall completely on both the ADS machine and the runtime machine. But I am still unable to get the data back to the application.



The error I am getting from the ADS is 10051, which is basically a Winsock error:




Network is unreachable.
A socket operation was attempted to an unreachable network. This usually means the local software knows no route to reach the remote host.




However, I am pretty sure the routes are valid. They were added using a broadcast search, and I can see in Wireshark that both systems are exchanging ADS Read/Write requests constantly (if I remove the route on any of the PCs, the exchange stops).



One detail is that the ADS-only system is not in start mode, i.e. I am unable to put it to "Start", although this is perhaps normal since there is no runtime there?



My questions are:



  • Does the ADS-only system have to be switched to Start mode too, using the tray icon ("Start/Restart")? I.e. does this operation affects the message routers too? Because if I try this on the ADS system I get an error, so I am unsure if this is because there is no runtime on that PC, or if there is an error. The event viewer shows the error: "Error starting TCRTSOBJECTS server. The system cannot find the path specified" with no additional clues.


  • Are there any additional settings, on the ADS-only system, that have to be done, apart from configuring the routes?










share|improve this question






























    0















    I have a working C project which communicates with local or remote TwinCAT 3 systems using ADS C API (online examples work well too).



    However, we are now trying to deploy the program to a different machine which only has TwinCAT ADS installed (as explained here under "Installation of TwinCAT 3 ADS only"). We have added routes on both machines. To simplify testing, we even disabled the firewall completely on both the ADS machine and the runtime machine. But I am still unable to get the data back to the application.



    The error I am getting from the ADS is 10051, which is basically a Winsock error:




    Network is unreachable.
    A socket operation was attempted to an unreachable network. This usually means the local software knows no route to reach the remote host.




    However, I am pretty sure the routes are valid. They were added using a broadcast search, and I can see in Wireshark that both systems are exchanging ADS Read/Write requests constantly (if I remove the route on any of the PCs, the exchange stops).



    One detail is that the ADS-only system is not in start mode, i.e. I am unable to put it to "Start", although this is perhaps normal since there is no runtime there?



    My questions are:



    • Does the ADS-only system have to be switched to Start mode too, using the tray icon ("Start/Restart")? I.e. does this operation affects the message routers too? Because if I try this on the ADS system I get an error, so I am unsure if this is because there is no runtime on that PC, or if there is an error. The event viewer shows the error: "Error starting TCRTSOBJECTS server. The system cannot find the path specified" with no additional clues.


    • Are there any additional settings, on the ADS-only system, that have to be done, apart from configuring the routes?










    share|improve this question


























      0












      0








      0


      1






      I have a working C project which communicates with local or remote TwinCAT 3 systems using ADS C API (online examples work well too).



      However, we are now trying to deploy the program to a different machine which only has TwinCAT ADS installed (as explained here under "Installation of TwinCAT 3 ADS only"). We have added routes on both machines. To simplify testing, we even disabled the firewall completely on both the ADS machine and the runtime machine. But I am still unable to get the data back to the application.



      The error I am getting from the ADS is 10051, which is basically a Winsock error:




      Network is unreachable.
      A socket operation was attempted to an unreachable network. This usually means the local software knows no route to reach the remote host.




      However, I am pretty sure the routes are valid. They were added using a broadcast search, and I can see in Wireshark that both systems are exchanging ADS Read/Write requests constantly (if I remove the route on any of the PCs, the exchange stops).



      One detail is that the ADS-only system is not in start mode, i.e. I am unable to put it to "Start", although this is perhaps normal since there is no runtime there?



      My questions are:



      • Does the ADS-only system have to be switched to Start mode too, using the tray icon ("Start/Restart")? I.e. does this operation affects the message routers too? Because if I try this on the ADS system I get an error, so I am unsure if this is because there is no runtime on that PC, or if there is an error. The event viewer shows the error: "Error starting TCRTSOBJECTS server. The system cannot find the path specified" with no additional clues.


      • Are there any additional settings, on the ADS-only system, that have to be done, apart from configuring the routes?










      share|improve this question














      I have a working C project which communicates with local or remote TwinCAT 3 systems using ADS C API (online examples work well too).



      However, we are now trying to deploy the program to a different machine which only has TwinCAT ADS installed (as explained here under "Installation of TwinCAT 3 ADS only"). We have added routes on both machines. To simplify testing, we even disabled the firewall completely on both the ADS machine and the runtime machine. But I am still unable to get the data back to the application.



      The error I am getting from the ADS is 10051, which is basically a Winsock error:




      Network is unreachable.
      A socket operation was attempted to an unreachable network. This usually means the local software knows no route to reach the remote host.




      However, I am pretty sure the routes are valid. They were added using a broadcast search, and I can see in Wireshark that both systems are exchanging ADS Read/Write requests constantly (if I remove the route on any of the PCs, the exchange stops).



      One detail is that the ADS-only system is not in start mode, i.e. I am unable to put it to "Start", although this is perhaps normal since there is no runtime there?



      My questions are:



      • Does the ADS-only system have to be switched to Start mode too, using the tray icon ("Start/Restart")? I.e. does this operation affects the message routers too? Because if I try this on the ADS system I get an error, so I am unsure if this is because there is no runtime on that PC, or if there is an error. The event viewer shows the error: "Error starting TCRTSOBJECTS server. The system cannot find the path specified" with no additional clues.


      • Are there any additional settings, on the ADS-only system, that have to be done, apart from configuring the routes?







      twincat twincat-ads






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 27 at 10:26









      GrooGroo

      37k14 gold badges94 silver badges164 bronze badges




      37k14 gold badges94 silver badges164 bronze badges

























          1 Answer
          1






          active

          oldest

          votes


















          1














          I can answer part of that properly - no the ADS only system does not need to be (and cannot be) in RUN.



          Are you sure the connection has been made from both ends? sometimes one server will have the connection registered, the other won't.



          The other thing to check is whether you have other entries in either ADS routes list with the same IP or ADS addresses (I imagine your development PLC may have multiple entries). I have seen this get confused before and had to remove the clashing entries before it would work.






          share|improve this answer




















          • 1





            It turned out to be an error in the configuration after all (wrong AMS Net Id somewhere). Yes, you are correct, the ADS system doesn't need the entire TwinCAT installation and can stay in config mode. So Wireshark was showing status packets being exchanged between the systems, but the actual application had an incorrect Net Id).

            – Groo
            Apr 3 at 14:27











          Your Answer






          StackExchange.ifUsing("editor", function ()
          StackExchange.using("externalEditor", function ()
          StackExchange.using("snippets", function ()
          StackExchange.snippets.init();
          );
          );
          , "code-snippets");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "1"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55374944%2frunning-twincat-3-ads-only-without-xar%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          1














          I can answer part of that properly - no the ADS only system does not need to be (and cannot be) in RUN.



          Are you sure the connection has been made from both ends? sometimes one server will have the connection registered, the other won't.



          The other thing to check is whether you have other entries in either ADS routes list with the same IP or ADS addresses (I imagine your development PLC may have multiple entries). I have seen this get confused before and had to remove the clashing entries before it would work.






          share|improve this answer




















          • 1





            It turned out to be an error in the configuration after all (wrong AMS Net Id somewhere). Yes, you are correct, the ADS system doesn't need the entire TwinCAT installation and can stay in config mode. So Wireshark was showing status packets being exchanged between the systems, but the actual application had an incorrect Net Id).

            – Groo
            Apr 3 at 14:27
















          1














          I can answer part of that properly - no the ADS only system does not need to be (and cannot be) in RUN.



          Are you sure the connection has been made from both ends? sometimes one server will have the connection registered, the other won't.



          The other thing to check is whether you have other entries in either ADS routes list with the same IP or ADS addresses (I imagine your development PLC may have multiple entries). I have seen this get confused before and had to remove the clashing entries before it would work.






          share|improve this answer




















          • 1





            It turned out to be an error in the configuration after all (wrong AMS Net Id somewhere). Yes, you are correct, the ADS system doesn't need the entire TwinCAT installation and can stay in config mode. So Wireshark was showing status packets being exchanged between the systems, but the actual application had an incorrect Net Id).

            – Groo
            Apr 3 at 14:27














          1












          1








          1







          I can answer part of that properly - no the ADS only system does not need to be (and cannot be) in RUN.



          Are you sure the connection has been made from both ends? sometimes one server will have the connection registered, the other won't.



          The other thing to check is whether you have other entries in either ADS routes list with the same IP or ADS addresses (I imagine your development PLC may have multiple entries). I have seen this get confused before and had to remove the clashing entries before it would work.






          share|improve this answer













          I can answer part of that properly - no the ADS only system does not need to be (and cannot be) in RUN.



          Are you sure the connection has been made from both ends? sometimes one server will have the connection registered, the other won't.



          The other thing to check is whether you have other entries in either ADS routes list with the same IP or ADS addresses (I imagine your development PLC may have multiple entries). I have seen this get confused before and had to remove the clashing entries before it would work.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Apr 3 at 14:24









          Mark LazzMark Lazz

          3252 silver badges12 bronze badges




          3252 silver badges12 bronze badges










          • 1





            It turned out to be an error in the configuration after all (wrong AMS Net Id somewhere). Yes, you are correct, the ADS system doesn't need the entire TwinCAT installation and can stay in config mode. So Wireshark was showing status packets being exchanged between the systems, but the actual application had an incorrect Net Id).

            – Groo
            Apr 3 at 14:27













          • 1





            It turned out to be an error in the configuration after all (wrong AMS Net Id somewhere). Yes, you are correct, the ADS system doesn't need the entire TwinCAT installation and can stay in config mode. So Wireshark was showing status packets being exchanged between the systems, but the actual application had an incorrect Net Id).

            – Groo
            Apr 3 at 14:27








          1




          1





          It turned out to be an error in the configuration after all (wrong AMS Net Id somewhere). Yes, you are correct, the ADS system doesn't need the entire TwinCAT installation and can stay in config mode. So Wireshark was showing status packets being exchanged between the systems, but the actual application had an incorrect Net Id).

          – Groo
          Apr 3 at 14:27






          It turned out to be an error in the configuration after all (wrong AMS Net Id somewhere). Yes, you are correct, the ADS system doesn't need the entire TwinCAT installation and can stay in config mode. So Wireshark was showing status packets being exchanged between the systems, but the actual application had an incorrect Net Id).

          – Groo
          Apr 3 at 14:27









          Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.







          Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.



















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55374944%2frunning-twincat-3-ads-only-without-xar%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

          Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

          Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript