Codesys Communication Watchdog

I have 3 Groov EPIC PR1’s networked together over Starlink and wanted to use the xConnected parameter on the MMP Client function blocks to monitor for loss of communications between the sites. However, upon testing it appears that once the MMP Client has been connected to there is not continuous evaluation of the MMP connection.

Is there something like a watchdog timer or a connection parameter that is ready made or will I need to create a check for communication?

Thanks

According to 1465 OptoMMP protocol guide, OptoMMP can be wrapped in TCP or UDP. Have you configured the MMP Client for TCP and observed the same behavior? UDP is a connectionless protocol, so there is no connection to monitor.

Solution for anyone else with this issue:

I created an integer that counted up by one for each scan and wrote that into a register on the scratchpad.

I then had the other PR1 Read that value and compare it to value for that variable on the last read. If they differed then comms were good. If the values were the same then comms were lost.

I sampled the value every 5 seconds but you can adjust that time as needed.

2 Likes