Change IP address for ModBus TCP/IP from HMI
I'm wondering if there is a possibility to enter a new IP address for a device that is connected using Modbus Master TCP/IP.
If I now want to change the IP address I have to change it in the configuration under MTM driver and have to load the entire project again to the raspberry.
If it simply can be done from out of the HMI it would be much easier for the operator.
Looking forward for feedback on this.
@rexpeter Hi Peter, Thank you for your question. Welcome back!
The answer to your question is in Modbus Driver Documentation within Chapter 3.4: https://www.rexygen.com/doc/ENGLISH/MANUALS/MbDrv/MbDrv_ENG.html#x1-200003.4
It is possible to change the "Slave" parameter of selected Item (e.g. GoTo flag MTM__Adam_9_Slave). However, all the Slave addresses must be declared prior to compilation. Afterwards, you can switch the reference to the Slave at each Item (by introducing the GoTo flag mentioned above).
I hope it helps.
Let me know if it works for you.
@rexpeter Hi Peter,
I have an update on your Topic. It is possible to change the Slave IP address by configuring "Address" parameter (e.g. GoTo flag "MTM__1_Address" in your case).