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 Quote 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. Quote 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. Quote 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. 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.