If no connection can be established to one or more servers, the HMI application is displayed after the timeout has expired. All values of the unconnected OPC UA servers are displayed accordingly (e.g. “XX” for NumericInput widgets). Is it possible to restart mappview server from program or retry the OPC UA connection or detect when the timeout happen from the Automation runtime so that we can program the PLC to execute warm restart to restart the mappview server.
I’m not sure but is it not like that OPCUA connection is reestablished automatically? e.g. if you navigate to new page? You can also try to increase OPCUA conection timeout.
If the connection to the configured OPC-UA server dies, mapp View server will try to re-connect periodically on its own.
There are also events to get notified in the HMI if the connection dropped or gets re-established.
Restarting the mapp View server is not possible - you would need to restart the PLC.
CHH
thanks for clarification @hobi
Hi Christian,
Is there is any Function block and libraries i can use to check whether the OPC-UA server has died?
Is there is any action that can be take rather than restarting the PLC?
To my knowledge there is not a dedicated function to check the availability of an OPC-UA server.
However, you can of course try to connect to the OPC-UA server … if the connection fails, you can assume, that he died.
CHH
The OPCUA server has, if I’m not mistaken, a status datapoint node. But as Christian mentioned, if the OPCUA server is dead, you cannot establish a connection, so this is easy to figure out