Professional OPC
Development Tools

logos

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.

× If you are developing in .NET, but are using the OPC-UA (OPC Unified Architecture), please post in the QuickOPC-UA category instead.

EasyDAMultipleItemsChangedEventArgs

More
14 Sep 2023 11:43 #12129 by PythonByte
I understand, it's an older application with multi components that inherited.

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.

More
14 Sep 2023 11:39 #12128 by support
Hello.

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.

More
14 Sep 2023 11:36 #12127 by PythonByte
Yes, both are integrated into a single application. I am using SLIKDA server.

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.

More
14 Sep 2023 11:17 #12125 by support
I still do not understand your architecture.

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.

More
13 Sep 2023 16:43 #12119 by PythonByte
Hello,

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.

More
13 Sep 2023 16:09 #12116 by support
Hello, thanks.

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.

More
13 Sep 2023 16:02 #12115 by PythonByte

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.

More
13 Sep 2023 15:47 #12114 by support
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

Please Log in or Create an account to join the conversation.

More
13 Sep 2023 15:43 #12113 by PythonByte
I have a very mysterious problem, everything was working in version 5.23. I started using the ItemChanged method and commented out the MultipleItemsChanged event, using this method:
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.

More
13 Sep 2023 15:23 #12112 by support
Hello.

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.

Moderators: support
Time to create page: 0.062 seconds