OPC Servers Redundancy in Elipse E3.

Question:

Is there  any native OPC redundancy tool in the Elipse E3 OPC Driver? How can I use it? If there is none, how can I work around it?

Solution:

No, there is no native OPC redundancy in the Elipse E3 OPC Driver? Therefore, the alternative in this case it to create a user event to monitor the value of the OPC driver‘s ServerStatus property.

The ServerStatus property establishes the status of the connection with the OPC Server, and is a read-only property. The available options are: -1: ServerStatus_Uknown (the OPC driver is connected to the OPC Server, but the status is unknown, or then the ReconnectPeriod property was set up as 0), and 0: ServerStatus_NotConnected (the OPc driver is not connected to the OPC Server).

there is NO native OPC redundancy in Elipse E3
User-generated event that monitors the value of ServerStatus property

This event will require a script featuring the ServerStatus property, as seen above. In this script, you will be able to change the name of the Server whenever the OPC Server status is different from 1. For example, you can follow the script below, that illustrates this situation.

Sub DriverOPC1_ServerStatusChanged()
     if ServerStatus <> 1 then
          Deactivate()
          if ServerMachine = "Servidor1" then
               ServerMachine = "Servidor2"
          else
               ServerMachine = "Servidor1"
          end if
          Activate()
     end if
End Sub

 

For further information on OPC redundancy in Elipse E3, please check our OPC Client section in this KnowledgeBase.

Print Friendly, PDF & Email

Este artigo foi útil? Was this helpful?

Classificação média - Average rating 0 / 5. Count: 0

Leave a Reply

Your email address will not be published.Required fields are marked *