Hello community, we must set a EthernetIP communication up and we would like to be able to change the IP during runtime without a Warmstart.
At the moment we are configuring the IP in the data object that is used by EIPInit() in the Init UP.
Is there an option to change this IP afterwards or do we need to edit the data object with the DataObj library first and carry out a warm restart so it takes effect?
Thank you for the information in advance!
Hello,
as you mentioned the EipInit I suppose you are talking about the library “asEthIP” library which means the software slave
Both mentioned IP adresses (its own slave IP and the IP of the master) must be entered in the data object and this data object is used by the “init” function block
In other words you would have to rewrite the dataobject (using dataobject library) and then call the EipExit and EipInit again.
This is not as easy done as said as the “exit” must be called in the ExitUp of the task (which is normally only executed on overload of this task) and the “init” must be called in the Init up of the task
In other words you would have to rewrite the dataobject and then trigger a restart. Calling the init fbk in cyclic part is not allowed due to the fact that you could easily stumble into a cycle time violation
best regards
Oliver