12:16, EEST
March 21, 2012
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
12:30, EEST
December 21, 2011
Rainer 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
Hi 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
15:27, EEST
March 21, 2012
16:40, EEST
March 21, 2012
8:09, EEST
December 21, 2011
8:28, EEST
March 21, 2012
Hello 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
I 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
Hello 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
OK, 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.
Most Users Ever Online: 1919
Currently Online:
15 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Heikki Tahvanainen: 402
hbrackel: 144
rocket science: 88
pramanj: 86
Francesco Zambon: 83
Ibrahim: 78
Sabari: 62
kapsl: 57
gjevremovic: 49
Xavier: 43
Member Stats:
Guest Posters: 0
Members: 734
Moderators: 7
Admins: 1
Forum Stats:
Groups: 3
Forums: 15
Topics: 1529
Posts: 6471
Newest Members:
Garmcrypto7Zof, calebhardison, susannahdingle7, inilarythikibia, rickykennion, PromotionToold, HypromeImpupe, toneylapham544, rondawolinski7, Marypof5711Moderators: Jouni Aro: 1026, Pyry: 1, Petri: 0, Bjarne Boström: 1032, Jimmy Ni: 26, Matti Siponen: 349, Lusetti: 0
Administrators: admin: 1