Changing Modbus Slave on the fly


Thread Starter

Steve Thomas

I have an embedded controller setup to communicate with Modbus RTU over a serial link. I also have a GUI that needs to have a matching Slave Address to communicate with the embedded side.

How can I change this slave address on the fly and not loose communication? There are 2 places on the embedded side and the GUI side that look for the address, and it seems that when I define the slave address it works fine but if I try and change it on the fly I loose communication. I just don't know how to go about it to change it on the fly. I can change the eeprom on the embedded side and try to pass it to the gui but I loose communication as soon as the change happens on the embedded side. Have any suggestions?