Hi, I have a problem with the Modbus server, as it disconnects the master device every few days. So far, I haven’t been able to find the cause, but I would like to implement a mechanism that turns the server off and on again in the event of an error.
The OSD_online(xConnected) variable changes to 0 from time to time when this error occurs. I would like to turn off the server for 10 seconds (xActivate_PGE → 0) and then turn it back on (xActivate_PGE → 1). I would like to add that the xActivate_PGE variable has a value of 1 from the moment the program starts and must remain so.
Thank you in advance for your help.
