Tagged: reconnect opc
June 5, 2017 at 9:44 am #2235
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!June 6, 2017 at 5:54 am #2238
Communicator can’t restart OPC server because this is another application. Is it enough to restart communication line to repair a connection?June 6, 2017 at 6:16 am #2239
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!June 6, 2017 at 1:23 pm #2241
Just right click the tree node and choose restart the line.June 6, 2017 at 3:09 pm #2243
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!June 7, 2017 at 5:54 am #2250
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).June 7, 2017 at 5:57 am #2251
It is possible to upgrade KpOpc.dll to repair connection to OPC server. It may be done as a custom development.June 7, 2017 at 5:59 am #2252
How the truly detect when OPC server is down?June 7, 2017 at 9:36 am #2253
I will take a look and I text you when I have something!
- You must be logged in to reply to this topic.