Can you create multiple Modbus publishers on the same instance using the same port but with different slave id’s?
If so, is there a limit on how many you can create?
phildunlap last edited by
This seems like something trying would give the best answer for! But,
- Yes you can enable more than one on the same port if the slave IDs are distinct.
- Yes there is a limit. Modbus has a slave ID space of something like 1-243 but the validation in Mango and Modbus4J should accept any integer 0 <= slaveId <= 255 so potentially there's a limit of 256, but in practice some of those slave IDs may not work.