I want to change the ip of the target modbus slave as shown in the following image. What I'm trying to do and probably what the OP too, is to put xEnable to False as prescribed here: https://help.codesys.com/webapp/_mod_lib_modbustcpslave;product=core_modbus_configuration_editor;version=3.5.16.0 The goal been to be able to use the UpdateCommunicationSettings function to update the slave ip.
Even is I check "Enable diagnosis for devices", I have not access to Modbus_TCP_Slave.xEnable in my code. This cause me to always get 1 as return value when using UpdateCommunicationSettings trying to update the ip address during execution. I also tried the method used here without success: https://faq.codesys.com/display/CDSFAQ/Modbus+TCP+Slave%3A+Dynamic+Setting+of+the+IP+Address V.3.5.16.30
Even is I check "Enable diagnosis for devices", I have not access to Modbus_TCP_Slave.xEnable in my code. This cause me to always get 1 as return value when using UpdateCommunicationSettings trying to update the ip address during execution. I also tried the method used here without success: https://faq.codesys.com/display/CDSFAQ/Modbus+TCP+Slave%3A+Dynamic+Setting+of+the+IP+Address
Same here. That result in me being unable to change the Modbus_TCP_Slave ip address with the UpdateCommunicationSettings function. V3.5.16.30