willburg Posted September 6, 2012 Report Share Posted September 6, 2012 Hello, I've a application with a big amount of modbus commands. 25 inverters and 1 touchscreen. What is the best way to send/recieve al this messages? Regards Leon Quote Link to comment Share on other sites More sharing options...
Walkerok Posted September 6, 2012 Report Share Posted September 6, 2012 The ability to communicate with multiple decies can be done in several ways, but one was is like the picture (I hope) from the gallery. Use an array method where each read/write line is executed based on if a memory integer equals a particular value. At the end of each net increment the integer by one and after you have gone through all of the read/write lines you want implemented then reset the memory integer to zero so the process can start over again. You have decisions to make on what to do when communication fails for one or more of your devices, but I do not have the time to gothrough all of that here. There was another forum question just earlier this week on that subject and some discussion was made in that line. Keith Yay the picture got put in !!! Thank You Cara Quote Link to comment Share on other sites More sharing options...
willburg Posted September 7, 2012 Author Report Share Posted September 7, 2012 this option doesn't work. After 3 massages it stops. Maby there is another way? Quote Link to comment Share on other sites More sharing options...
MVP 2021 Joe Tauser Posted September 7, 2012 MVP 2021 Report Share Posted September 7, 2012 The nets in the picture are probably banging the serial port too quickly and not allowing the Modbus blocks to finish before incrementing to the next block. I'd slow it down a bit with a separate net monitoring the value of the Modbus status register value and a short timer in front of the INC block before proceeding on to the next address. As Keith said - You'll have to make some decisions as to what to do when communication fails. The picture he posted is a starting point and will need to be modified to handle errors. Joe T. Quote Link to comment Share on other sites More sharing options...
Walkerok Posted September 7, 2012 Report Share Posted September 7, 2012 I use have this method to talk to 8 devices simultaneously with 3 reads and two writes each for a total 40 reads and writes and it works well. Post your program and lets see if we can figure out what is going on. I have never uses a Jazz to do communications, I find the Jazz way too limiting. I generally would not use anything less than the V130 when I am doing Modbus comminications personaly. The cost of the Base V130 is not different enough from the cost of a Jazz combined with the required port hardware to make the communication possible. Keith Quote Link to comment Share on other sites More sharing options...
willburg Posted September 8, 2012 Author Report Share Posted September 8, 2012 Here is the file. The modbus line begins on net 53. I think its going to fast?? 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.