DATA AHEAD toolkit support Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

SP7 RECONNECT

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

 

 

Image and video hosting by TinyPic
<script type="text/javascript" async src="//cdn.youracclaim.com/assets/utilities/embed.js"></script>
0 Kudos
Message 1 of 2
(1,459 Views)

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

Kudos are welcome...
0 Kudos
Message 2 of 2
(1,439 Views)