Professional OPC
Development Tools

logos

Online Forums

Technical support is provided through Support Forums below. Anybody can view them; you need to Register/Login to our site (see links in upper right corner) in order to Post questions. You do not have to be a licensed user of our product.

Please read Rules for forum posts before reporting your issue or asking a question. OPC Labs team is actively monitoring the forums, and replies as soon as possible. Various technical information can also be found in our Knowledge Base. For your convenience, we have also assembled a Frequently Asked Questions page.

Do not use the Contact page for technical issues.

Monitoring [OPC] Server State

More
30 Aug 2012 10:17 #1006 by support
R.

We do not have any special code or detection for any of the cases listed. We simply use whatever the operating system or the OPC servers gives us. Therefore we cannot give guarantees to how it will behave.

For 1), the outcome will depend on whether during the computer shutdown sequence, the OPC Server will issue a request to its OPC Clients to disconnect. If so, we will report a COMException with error code 0xC0049006 (-1073442810), with error message “Server shut down. The OPC server indicated that it needs to shut down. The application is releasing all connections and interfaces for this server. The application will try to reconnect to the server after a configurable period.”. If the OPC server does not issue the disconnect request (using IOPCShutdown), the behavior will be probably similar to that of 2) below.

Assuming that for 2), the customer means a network cable between the OPC client and server machine, then the most likely outcome is that we will report a COMException with error code 0x800706BA (-2147023174), which is RPC_E_UNAVAILABLE (error message “The RPC server is unavailable.”).

Ad 3), if this is about a communication failure between the OPC Server and its device, the behavior depends on the OPC Server, but most likely there will be no exception, but the OPC Quality will be Bad (QUAL_BAD, 0x0000) with a substatus QUAL_COMM_FAILURE (0x0018), i.e. 24 in decimal.

Best regards,

Please Log in or Create an account to join the conversation.

More
30 Aug 2012 10:17 #1005 by support
From: R.
Sent: Wednesday, August 29, 2012 5:16 PM
To: Zbynek Zahradnik
Subject: Monitoring Server State

Hello Zbynek,

I have a customer who was asking about monitoring the health of the client to server connection through the data.Net application. I explained to him that this is handled behind the scenes by the easy DA component and pointed him to the Failure Recovery section of the help file. He responded with the following:

[.....] In my current client application, I need to be able to notify the console operator ,via the application, when the server has; 1) rebooted. 2) network cable has been disconnected, and 3) when the values of two subscription items have Comm failure. I know my code is not properly catching these specifics and need more VB OPC.NET answers.


Are these specific server states returned by the Exception or any other property?

Please Log in or Create an account to join the conversation.

Moderators: support
Time to create page: 0.046 seconds