Fieron Posted March 12, 2014 Report 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
AlexUT Posted March 12, 2014 Report 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.
MVP 2023 Flex727 Posted March 12, 2014 MVP 2023 Report 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.
Gabriel Franco Posted March 13, 2014 Report 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.
HigHTech Posted March 13, 2014 Report 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.
MVP 2023 Flex727 Posted March 13, 2014 MVP 2023 Report 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?
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now