I have a PFC300 controller that is set up with an OPC-UA server on it. The server has certain process parameters that are updated and read by an industrial PC running an OPC-UA client. The IPC also has the ability to write to a few tags on the OPC-UA server. As a safety measure, I would like to implement some kind of keep-alive functionality so that if the connection with the OPC-UA client drops, the PFC stops certain processes. To make things more difficult, the intention is to have potentially more than one client connected to read the states of the readable tags over OPC-UA but I am only interested in whether a specific client is connected or not. If the other clients disconnect, the process does not need to stop.
I read online that OPC-UA has some keep-alive or monitoring functionality built in but I could not find any documentation specific to codesys or WAGO in how to realize this. Has anyone else faced a similar situation and how did you implement this? Does anyone have any recommendations?