pascal Posted April 18 Report Share Posted April 18 I have several PLC's running to control a building (because I can only use 8 URB adapters on 1 PLC ๐๐๐) On 1 PLC, I communicate with my lighting system (HELVARNET - DALI) to ask the status of my lights. Because it's a huge building,ย it takes a while for scanning all lightsgroups. For every group, I have the status in a data table. But now I want to make this data table is also available for my other PLC's (so they don't have to ask my lighting system what's the state of the lights) I've tried to update the status with MQTT, publishing and subscribing all status of all lightgroups, but this is to slowly for me..... What's the easiest way to "send" my data table to the different PLC's ? any suggestions ? my data table is built with a structure of+- 15 elements (integers, bit arrays, string,...) -> size is 13200 bytes I need something that can be run in the background, because my scantime is already high.... -> +-50000 ยตs (so I could have problems with my 100ms timer....) ย Quote Link to comment Share on other sites More sharing options...
dierkens Posted April 18 Report Share Posted April 18 Why not just use MODBUS status for everything you only need current state updates on and then have the other PLCs just read/write stuff to each other as needed? Quote Link to comment Share on other sites More sharing options...
Gabriel Franco Posted April 18 Report Share Posted April 18 Since you want to share datatables between different PLCs, the easiest (easy in terms of a few lines of code) way I see, is to write DT from the source PLC to a SQL database, then any other PLC can retrieve data in any time asyncronously. For reference, my PLC program toom about 330 scan cycles to INSERT 50 rows.ย If you want to go faster, you would use Ethernet/IP, sending the entire data table (row by row) to each destination PLC. ย Quote Link to comment Share on other sites More sharing options...
MVP 2021 Ausman Posted April 20 MVP 2021 Report Share Posted April 20 Unican?ย ย ย https://support.unitronics.com/index.php?/selfhelp/view-article/unitronics-unican-communication-protocol cheers, Aus 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.