Jump to content

Modbus Configuration - Indirect Slave ID Declaration


Javier Camusso

Recommended Posts

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)

Example.jpg

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.

Hw.jpg

Link to comment
Share on other sites

  • 2 weeks later...
  • MVP 2023

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

This site uses cookies. By clicking I accept, you agree to their use.