Reconnect OPC Server

Forum Home Forums Communicating with Devices OPC Reconnect OPC Server

Tagged: 

This topic contains 8 replies, has 2 voices, and was last updated by  rovira12 1 year, 6 months ago.

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #2235

    rovira12
    Participant

    Hello!

    I have an OPC server in localhost. When the Communicator loses the connection with the OPC Server for external reason (for example,someone shuts down the application) the communicator does not try to reconnect with the server and restart the OPC server application. If I do not restart manually the connection is lost and if no one realizes this a lot of information is lost. Is there an option to enable the communicator to reconnect with the OPC server when the connection is lost?

    Thank you!

    #2238
    Mikhail
    Mikhail
    Moderator

    Hello,

    Communicator can’t restart OPC server because this is another application. Is it enough to restart communication line to repair a connection?

    #2239

    rovira12
    Participant

    I do not know it, but I can try it! Anyway, being careful and starting the application always before Rapid SCADA there is no problem. Could you give me some information on how to restart the communication line?

    Thank you!

    #2241
    Mikhail
    Mikhail
    Moderator

    Just right click the tree node and choose restart the line.

    #2243

    rovira12
    Participant

    Yes! This works, but it is the manual option. Rapid SCADA does not check if the application server is working, and if it is not, tries to start it?

    Rapid SCADA starts the application server always when I restart the communicator and when I browse the Server Tags. However, if I close the server application while Rapid SCADA is running no error meassage appears and it seems like Rapid SCADA does not know that the OPC server has been shutted down and does not try to restart the connection.

    I am asking because I have other OPC client that check if the OPC Server is working and if it is not, they start the OPC server application. No matter how many times I shut down the OPC server, the client always restart this application.

    The SCADA I made works perfectly, I am just asking if this functionity exists as it would be an extra upgrade.

    Thanks again!

    #2250
    Mikhail
    Mikhail
    Moderator

    Rapid SCADA does not know that the OPC server has been shutted down

    It’s true. There is a workaround. You can send a command via a text file to restart the communication line:
    Create a file cmdXXX.dat within C:\SCADA\ScadaComm\Cmd
    where XXX is a random number

    [Command]
    Target=ScadaCommSvc
    Sender=ScadaCommCtrl
    User=Admin
    DateTime=12/21/2015 23:00:13
    LifeTime=60
    CmdType=RestartLine
    LineNum=1
    End=
    

    I think you can create a file by using formulas in the configuration database (Administrator app).

    #2251
    Mikhail
    Mikhail
    Moderator

    It is possible to upgrade KpOpc.dll to repair connection to OPC server. It may be done as a custom development.

    #2252
    Mikhail
    Mikhail
    Moderator

    How the truly detect when OPC server is down?

    #2253

    rovira12
    Participant

    I will take a look and I text you when I have something!

Viewing 9 posts - 1 through 9 (of 9 total)

You must be logged in to reply to this topic.