Topic RSS12:16, EEST
March 21, 2012
OfflineHello !
I want to connect remote to an OPC Server with TPSOPCServer.
I can connect to the Server by changing the Property Connected from false to true in the Delphi IDE.
When i start my Delphi example Client and set Server.connect then follwing error apears “OPC Error in Method IconnectionPoint.Advise Code 0x8000FFFF (Catastrophic failure)
Why I can connect at the Delphi IDE and not by runtime ?
Br
Rainer
12:30, EEST
December 21, 2011
OfflineRainer Versteeg said
Hello !
I want to connect remote to an OPC Server with TPSOPCServer.
I can connect to the Server by changing the Property Connected from false to true in the Delphi IDE.When i start my Delphi example Client and set Server.connect then follwing error apears “OPC Error in Method IconnectionPoint.Advise Code 0x8000FFFF (Catastrophic failure)
Why I can connect at the Delphi IDE and not by runtime ?
Br
Rainer
The error means that the server failed to register the callback interface in the server. This is probably because of DCOM configuration does not enable the call from the server to client. This can also come from an OPC group – or OPCConnector in practice.
At design time, the components may not function exactly the same – to prevent bad problems of crashing the Delphi IDE – so it may also be that the callback is not connected to server at design time.
14:03, EEST
March 21, 2012
OfflineHi Jouni !
Thank you.
We have two Windows 7 PC´s. The OPC Server is running on a Windows 7 system with the Workgroupname Workgroup.
The Client is running on a Windows 7 System in a domain.
I have check all DCOM settings in firewall settings. There are all O.K
I have make a new project with only the TPSOPCServer component and make remote connect to the client.
Is there a problem with workgroup and domain ?
Br,
Rainer
15:21, EEST
December 21, 2011
Offline15:27, EEST
March 21, 2012
Offline16:40, EEST
March 21, 2012
Offline8:09, EEST
December 21, 2011
Offline8:28, EEST
March 21, 2012
OfflineHello Jouni !
My problem is the different Network configuration. If i have two PC with the same workgroup, username and password, than the above error not appears.
My question is: Is ist possible to connect a opc client (PC in a domain) with a OPC server (Pc in a workgroup with different username and password as the PC in a domain). The client is set to Async=True, because we have to much items.
Br,
Rainer
10:39, EEST
December 21, 2011
OfflineI am not a very good expert on domain configurations (we do not use them ourselves). But I am afraid that it makes it more difficult and it may not be possible, because the domain computer will only use domain user accounts, which are different from the workgroup accounts. In this case, it may not help if you have the same user and password either.
14:23, EEST
March 21, 2012
OfflineHello Jouni !
The 3 Clients are Panel PC. The customer makes a Power Reset on the Panel PC ! Then restart the Panel PC and then the Server hangs sometimes !
I dont know why the server hangs ? That the OPC Server cleans open connections. Can I see that the OPC Server is cleaning. Can I disconnect the cleaning ?
Rpcrt4.dll, is used by windows to send and receive RPC (Remote Procedure Call) requests.
Br, Rainer
17:53, EEST
December 21, 2011
OfflineOK, thanks for the details. I got it now.
The server is not doing any automatic cleaning.
Do you know if the clients are using async connections? I can think that the server could fail calling the client callback, although that is done in a separate thread, and should not hang or crash the application.

Log In
Register