Modbus tcp Slave several addresses

Can you create multiple Slave addresses (Example: 1, 5,12) with different registers?

Is the Codesys device acting as a slave in this case? If so, are you trying to add multiples underneath the same Ethernet device?

If you mean running one physical slave configured as “several slaves” in the master, I’ve achieved this by using different ports (502, 503, …) in the slave.

Do I understand correctly that from the codesys configurator I will not be able to make multiple devices? With the ports, I liked the version.

You may be able to do the same with the Configurator with individual Slaves, each with their own Port:

1 Like

You can simple add more under your ethernet device and assign different ports.

NOTE: I have not tested this but it should work similar to @bjornidar.

1 Like