800xA 5.1 PLC connect/third-party OPC server - Restart of PLC Connect service is required after connection error
Setup: An 800xA 5.1 fp4 control system has a connection to a third-party OPC server using a OPCDA connector service. Both read and write. Non-redundant. Object/data types from the PLC Connect extension is being used. The setup works fine, except whenever the third-party OPC server is restarted, it's necessary to restart the PLC Connect service (AdsScadaSrv.AdsScadaServer.1) to get the connection to work again.
Why? Is it possible to fix this? If not, is it possible to have the service restart automatically upon connection failure? The system already has some scripting stuff to detect connection failure (watchdogs, alarm).
Why? Is it possible to fix this? If not, is it possible to have the service restart automatically upon connection failure? The system already has some scripting stuff to detect connection failure (watchdogs, alarm).
Answers
Which OPC Server is used? Is it Kepware?
The problem is the your OPC server won't be remembering the OPC clients and hence not update them after a restart.
But PLC Connect has a registry key for this behavior.
If the OPC goes to a state Failed, Suspended, NoConfig or Test, then PLC Connect can reconnect the connection to the OPC server automatic.
In the registry go to:
HKEY_LOCAL_MACHINE/SOFTWARE/ABB/Operate IT/Common/Params/PlcOpc/OPCServer/"ServerName"
Then you have :
ReconnectOn_OPC_STATUS_FAILED
ReconnectOn_OPC_STATUS_NOCONFIG
ReconnectOn_OPC_STATUS_SUSPENDED
ReconnectOn_OPC_STATUS_TEST
Check in the AdsPlcOpcDriver.log for what state the OPC state is going to. Set this status to True in the registry setting, then PLC Connect is reconnected to this OPC server automatic.
The problem is the your OPC server won't be remembering the OPC clients and hence not update them after a restart.
But PLC Connect has a registry key for this behavior.
If the OPC goes to a state Failed, Suspended, NoConfig or Test, then PLC Connect can reconnect the connection to the OPC server automatic.
In the registry go to:
HKEY_LOCAL_MACHINE/SOFTWARE/ABB/Operate IT/Common/Params/PlcOpc/OPCServer/"ServerName"
Then you have :
ReconnectOn_OPC_STATUS_FAILED
ReconnectOn_OPC_STATUS_NOCONFIG
ReconnectOn_OPC_STATUS_SUSPENDED
ReconnectOn_OPC_STATUS_TEST
Check in the AdsPlcOpcDriver.log for what state the OPC state is going to. Set this status to True in the registry setting, then PLC Connect is reconnected to this OPC server automatic.
Add new comment