Modbus IP address changed dynamically

Hi,

I’m using a Cerbo GX and another PLC, the communication is by Modbus TCP IP, everything works fine.

The problem appears when I shall add to the LAN another Cerbo + PLC. In this case I want to be sure every device has different IP.

I see one solution: send a modbus cmd to change the IP address to the Cerbo + PLC.

The point is that I cannot find the modbus register in the excel file with modbus parameter.

Could you help me?

Thanks,

have a great day!

The best way to solve this problem is to build an allocation table in your router, that allocates a fixed ip to each piece of equipment by it’s MAC address. this does not take long to do, and then every address is reserved for that equipment, and plc’s cerbo’s etc don’t periodically change their addresses when the DHCP lease expires.

I’ve found out that enabling DHCP in an industrial network brings more pain in the long run than just setting from the beginning a specific IP for each equipment. Not to mention that you can set the IPs based on your own strategy…

Hi Alex, In an industrial setting, one can restrict the DHCP range, which can be left on for guests and roaming access, but as mentioned, most routers allow you to build an allocation table based on MAC addressing, some of the rules can be quite complex, like recognising a manufacturer by the MAC prefix, and allocating all of that manufacturer’s equipment to a particular sub net. As this can be done from a pc managing the router, or even by remote support, this can be easier than having to fix the ip of each individual piece of kit as you ate it out of the box and commission it.

1 Like