Javier Camusso Posted November 17, 2016 Report Share Posted November 17, 2016 Hi everyone. I tried to use a MODBUS configuration using an indirect declaration of SLAVE ID, but didn't work. (see example in index 2 and 3 below) If I declare the SLAVE ID in a direct way, all OK. My problem is that I have to read several slaves from the PLC, and is realy hard to do with a fixed Modbus configuration. I am using a V130 in revision 9.6.0. Thanks in advance. Regards, Javier. P.D.: Sorry if I posted this twice. I couldn't find the first post. Link to comment Share on other sites More sharing options...
lawry Posted November 20, 2016 Report Share Posted November 20, 2016 Have you set your addresses in the respective MIs? Link to comment Share on other sites More sharing options...
Javier Camusso Posted November 21, 2016 Author Report Share Posted November 21, 2016 Yes. Just using direct assignment in SLAVE ID and all other parameters as they are, and communication is fine. The issue is clearly related with indirect assignment in SLAVE ID. Not in IP adressing. Link to comment Share on other sites More sharing options...
MVP 2023 Joe Tauser Posted November 29, 2016 MVP 2023 Report Share Posted November 29, 2016 Have you tried re-triggering the Modbus Config block after you write a new value to the Slave ID MI? You didn't show your ladder code, but I'm betting the only time the Config block gets called is on power up. You can parallel another trigger to it, and it is required to set the slave paths. Joe T. Link to comment Share on other sites More sharing options...
Javier Camusso Posted November 30, 2016 Author Report Share Posted November 30, 2016 Yes, I did that manually, using a pulse in parallel with power-up bit that I set in run time. I realized another thing during this: The IP and port setings in Modbus configuration have no effect! The communication uses the socket settings, regardless of Modbus configuration. The only one parameter that uses from configuration is the ID. 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