- Posts: 12
- Thank you received: 0
Online Forums
Technical support is provided through Support Forums below. Anybody can view them; you need to Register/Login to our site (see links in upper right corner) in order to Post questions. You do not have to be a licensed user of our product.
Please read Rules for forum posts before reporting your issue or asking a question. OPC Labs team is actively monitoring the forums, and replies as soon as possible. Various technical information can also be found in our Knowledge Base. For your convenience, we have also assembled a Frequently Asked Questions page.
Do not use the Contact page for technical issues.
EasyDAMultipleItemsChangedEventArgs
- PythonByte
- Topic Author
- Offline
- Premium Member
I will keep digging and hopefully I find something.
Thank you for your help
Please Log in or Create an account to join the conversation.
Combining OPC server and client in one application is very difficult in terms of COM/DCOM security. And, doing so with two toolkit from different vendors even more so. Each toolkit may assume it has the right to control the COM/DCOM security, so conflicts are almost inevitable.
This is not the kind of setup we can help with.
Best regards
Please Log in or Create an account to join the conversation.
- PythonByte
- Topic Author
- Offline
- Premium Member
- Posts: 12
- Thank you received: 0
I was able to get further, my server is throwing an Access denied error when trying to connect with the ItemChanged method, if I comment it out, it connects just fine.
Thank you
Please Log in or Create an account to join the conversation.
On your side, is the client and server somehow integrated in a single application? QuickOPC only allows client development. If the server is integrated in the same application, what kind of server toolkit/library are you using?
Regards
Please Log in or Create an account to join the conversation.
- PythonByte
- Topic Author
- Offline
- Premium Member
- Posts: 12
- Thank you received: 0
on my side, I have a client and a server, and on the other side they have a client and a server. My server handles their client requests and exchange info. It seems to be my server stops allowing their client to connect if I add the ItemChanged method and allows them to connect if I remove it.
I am looking into why this single method breaks communication between their client and my server...
Thank you
Please Log in or Create an account to join the conversation.
I still do not get why you write " Siemens OPC server stops connecting to my OPC client ", I suppose in normal terminology it would be the other way round, so your client stops connecting to the Siemens OPC server? Please confirm.
Is your OPC client application connecting to multiple OPC servers? And one of them is affected and others are not?
And I do not get " the other OPC server is throwing is: Failed to connect to OPC server (80080005H)." Are you saying that when your clients tries to connect, the server shows this error? And what is the error on the client?
Regards
Please Log in or Create an account to join the conversation.
- PythonByte
- Topic Author
- Offline
- Premium Member
- Posts: 12
- Thank you received: 0
I will need some block diagram, or better explanation of parts involved. What you wrote makes no sense to me: " other OPC servers (Siemens OPC) stopped being able to connect to my OPC server" - OPC server do not connect to other OPC servers. Clients connect to servers.
Regards
sorry I mean Siemens OPC server stops connecting to my OPC client when I add that method (ItemChanged), If I comment it out, the server can connect to my client. In the older version (5.23) the OPC server connected to my client just fine using the MultipleItemsChanged method in my code, and with this method is gone in version 5.59, adding the ItemChanged method breaks the communication between the server and the client.
Thanks
Please Log in or Create an account to join the conversation.
Regards
Please Log in or Create an account to join the conversation.
- PythonByte
- Topic Author
- Offline
- Premium Member
- Posts: 12
- Thank you received: 0
Public Sub ItemChanged(sender As Object, e As EasyDAItemChangedEventArgs) Handles m_opcClient.ItemChanged
Dim Tag As HQTag = CType(e.Arguments.State, HQTag)
If e.Succeeded Then
Tag.Value = e.Vtq.Value
Else
Tag.ServerError = e.Exception.GetHashCode.ToString
End If
RaiseEvent TagChanged(Tag)
End Sub
Everything works, I get tags value being changed but other OPC servers (Siemens OPC) stopped being able to connect to my OPC server. If I comment out the event above ItemChanged, the other servers can connect to my OPC without issues...How can possibly this single method stops other OPC servers from connecting? The only error message the other OPC server is throwing is:
Failed to connect to OPC server (80080005H).
what do you think?
Please Log in or Create an account to join the conversation.
The events that delivered multiple notifications at the same time were removed in later versions (together with their supporting event argument types).
The reason for the change was that they were not bringing the performance improvement they were intended for.
You can use the event that delivers single notification at a time, and remove the loop that iterated over multiple notifications.
Best regards
Please Log in or Create an account to join the conversation.