Fieron Posted March 12, 2014 Report Share Posted March 12, 2014 Hi Unitronics Programmer, I will build an Ethernet Network with more V350-35-TA24 PLC's. One V350 (as Master) and five V350er (as Slave). Protocol Modbus TCP/IP, Socket 2, Ports 502. Is there a practical solution? Does anyone have such a Project already realized? Best regards Holger Fieron Quote Link to comment Share on other sites More sharing options...
AlexUT Posted March 12, 2014 Report Share Posted March 12, 2014 Hi Fieron, We cannot understand your question. Do you have any problem to realize this? Something does not work? Be more specific in questions, and you will have answer or recommendation. Quote Link to comment Share on other sites More sharing options...
MVP 2022 Flex727 Posted March 12, 2014 MVP 2022 Report Share Posted March 12, 2014 Fieron is referring to the 4 socket limitation. You will need to connect and disconnect to each slave as needed, or on a regular cycle, depending on your application. Just be aware that it will take a large fraction of a second (or two) to perform the disconnect/reconnect process. I have done this successfully, but I sure would like to see an optimized routine for accomplishing this published as a best practice by Unitronics or an experienced programmer. Quote Link to comment Share on other sites More sharing options...
Gabriel Franco Posted March 13, 2014 Report Share Posted March 13, 2014 I´ve used UDP instead of TCP. This way I only need one single socket and connect/disconnect has not to be performed. Quote Link to comment Share on other sites More sharing options...
HigHTech Posted March 13, 2014 Report Share Posted March 13, 2014 Fieron is referring to the 4 socket limitation. You will need to connect and disconnect to each slave as needed, or on a regular cycle, depending on your application. Just be aware that it will take a large fraction of a second (or two) to perform the disconnect/reconnect process. I have done this successfully, but I sure would like to see an optimized routine for accomplishing this published as a best practice by Unitronics or an experienced programmer. With 5 you can easily do it in less than 1 second. Remember you just need about 100 ms/slave. Quote Link to comment Share on other sites More sharing options...
MVP 2022 Flex727 Posted March 13, 2014 MVP 2022 Report Share Posted March 13, 2014 With 5 you can easily do it in less than 1 second. Remember you just need about 100 ms/slave. I haven't been successful at getting the total time down to 100 ms. Either the socket doesn't properly close or the data exchange fails, etc. Can you post some code, or even just a step-by-step algorithm that can make that happen? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.