RBC Posted July 1, 2014 Report Share Posted July 1, 2014 Hi. My network comprises of 6 V570 plc's using raw udp to communicate. IP addresses from 192.168.1.100 / 101 / 102 / 103 / 104 / 105. At this stage all plc's broadcast anytime. I need a sequencer to make sure they only broadcast one after another acording to ip address. Lets say we start ip 100 to send, then if 101 receive the data from 100 he must send to all and so on. I've attached the program recived from unitronics to set up my network. I've tried various compares and moves but every now and the the network get stuck that way. I will apreciate any help in this regard. Thanks. UDP Raw broadcast PLC1_V570.vlp Link to comment Share on other sites More sharing options...
Michael_P Posted July 1, 2014 Report Share Posted July 1, 2014 HI Rcerva, You have already defined a data arrived bit within the logic, You can use a positive transition of that element to drive an incrementer. Also generate another incrementer when it sends to another unit. These values can them be compared. What you will do is look to see that they are not equal, if not equal trigger or set a send bit or command, this will be used to drive the send operation, it is then incremented when the send is triggered. This will allow the unit to send only after it has received data from the previous unit, a cascading communication per say. Link to comment Share on other sites More sharing options...
linxchas Posted July 1, 2014 Report Share Posted July 1, 2014 In addition to the logic that you already have, I would recommend you to select one controller that will lead, control and synchronize the process.Otherwise you can fall into egg and chicken loop. Link to comment Share on other sites More sharing options...
RBC Posted July 1, 2014 Author Report Share Posted July 1, 2014 Thanks. Thats what i had in mind but not sure how to do. Will sit and figure it out tonight so i can implement it tommorrow. Link to comment Share on other sites More sharing options...
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