Kieran B Posted July 29, 2020 Report Share Posted July 29, 2020 Hi there, I have to update program on a site where we already have 2x samba 43 in place, I will need to poll some modbus values and show them on the displays from 4 RS485 devices, - VSD and soft starters, these will all be on a RS485 to TCP gateway, in my complete program I have made a separate working example of what i'm trying to do, by using 2 spare sambas i have, as a master & slave combo i just wanted to know if its the best practice way of doing it when polling the 24 to 30 different values needed I am also curious about the settings to do with SB168 Link lost auto recover, do i then need to set some time values in SI 103-110 to make it work properly? Any help or advice is always appreciated! network.vlp network slave.vlp Link to comment Share on other sites More sharing options...
Isakovic Posted August 4, 2020 Report Share Posted August 4, 2020 Here are my suggestions. This part here: If no connection is established due to some reason, T0 will stay on and PLC will not try to reconnect again. T0 should restart if there is no connection after some time. Since you do both master and slave pack all registers that you need to read from slave one after another and then read them all at once with one command (Vector length 24 in read command). It's more efficient than reading them one by one. About SB168 I always Set it at startup as suggested and Set SI103-106 to 200. Don't know how it behaves if values are left blank. I'm curious does your method of calling Modbus commands works? Have you tested it? Link to comment Share on other sites More sharing options...
Kieran B Posted August 11, 2020 Author Report Share Posted August 11, 2020 Thanks for the reply, yes my sample projects attached work great, I have 2x sambas on my desk for testing, i split the registers up like that to simulate reading from multiple slave devices across various registers. i have done as suggested with SI103 etc that works great, and reconnects after a short period Link to comment Share on other sites More sharing options...
Isakovic Posted August 12, 2020 Report Share Posted August 12, 2020 22 hours ago, Kieran B said: yes my sample projects attached work great I like your style. It's more efficient, I have separate bit for every Modbus command. Will give this method a try. Link to comment Share on other sites More sharing options...
John_R Posted August 12, 2020 Report Share Posted August 12, 2020 3 hours ago, Isakovic said: On 8/11/2020 at 7:41 AM, Kieran B said: yes my sample projects attached work great I like your style. It's more efficient, I have separate bit for every Modbus command. Will give this method a try. Kieran I would like to see your "style", I sometimes do MODBUS and I always feel my code is clunky.... But I can't seem to download your sample projects, as though they are now dead links... Regards, JohnR Link to comment Share on other sites More sharing options...
MVP 2023 Ausman Posted August 12, 2020 MVP 2023 Report Share Posted August 12, 2020 John, you haven't forgotten to log in have you? Works for me this morning! cheers, Aus Link to comment Share on other sites More sharing options...
John_R Posted August 13, 2020 Report Share Posted August 13, 2020 10 hours ago, Ausman said: John, you haven't forgotten to log in have you? Works for me this morning! cheers, Aus no, I'm logged in, even tried signing out and back in again. probably something on our network blocking me, I'll give it a shot from my home puter tonight... 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