LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Modbus RTU connection to multiple slaves

Solved!
Go to solution

That seems to be the correct way. My apologies.

0 Kudos
Message 11 of 14
(461 Views)

Do you mean that I should switch back and forth between the addresses? Read one, change address, read the next?

Thanks!

0 Kudos
Message 12 of 14
(439 Views)
Solution
Accepted by topic author Sparkman2

Yes, exactly. In principle, you can also set the unit ID once and create an array of Modbus Master instances.

0 Kudos
Message 13 of 14
(426 Views)

@StevenD  escreveu:

think I have used two devices on the same COM port. The NI Modbus Library should be smart enough to deal with it as multidrop is part of the Modbus specification (assuming it is 485 wiring, not 232). If you do have issues with it, there is another Modbus Library other people on the forums use called Plasmionique

 

https://www.vipm.io/package/mb_master/ 

 

 


Are you aware if this is true for slaves too?

For example, multiple LabVIEW modbus slaves in the same COM port?

Regards,

0 Kudos
Message 14 of 14
(206 Views)