06-23-2022 01:38 AM
Hello
I am communicating a cRIO with a siemens PLC using SP7 toolkit correctly.
When a hardware change is done in the PLC or for some reason the PLC is stopped, the communication between them is broken and i have to restart also the cRIO.
There is any way to reconnect automatically the connection when it is lost?
Regards
06-23-2022 10:59 AM - edited 01-10-2023 10:32 AM
Hello,
that is a standard question for all instrument communications and the standard answer is usually the same:
You have to react to the communication error in your program code and decide for yourself how and when you put a reconnection trial inside your program.
There is no method in the SP7 API that does such a reconnect for you automatically.
Regards,
DATA AHEAD