Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » 4DIAC - Framework for Distributed Industrial Automation and Control » How to subscribe or publish with OPC DA?
How to subscribe or publish with OPC DA? [message #1834868] Thu, 19 November 2020 12:19 Go to next message
ys guo is currently offline ys guoFriend
Messages: 4
Registered: November 2020
Junior Member
I compile forte for supporting opc da module. but I don't know how to use SUBSCRIBE_1 or PUBLISH_1 FB to read or write data from opc da server.
Re: How to subscribe or publish with OPC DA? [message #1834886 is a reply to message #1834868] Thu, 19 November 2020 19:08 Go to previous messageGo to next message
Alois Zoitl is currently offline Alois ZoitlFriend
Messages: 1582
Registered: January 2014
Senior Member

As the documentation points out you our opc da integration only works with a CLIENT FB.
Re: How to subscribe or publish with OPC DA? [message #1834897 is a reply to message #1834886] Fri, 20 November 2020 01:52 Go to previous messageGo to next message
ys guo is currently offline ys guoFriend
Messages: 4
Registered: November 2020
Junior Member
Thank you for your replay. I do a demo according to the document. After triggering the INIT event, the OPC-client connected with the OPC-server. But when I trigger the REQ event to send the data from client to server, it doesn't work. The Virtual Controller state is still disconnected.

I want to read or write data to a opc da server, so I do the second test. I use Simple OPC Server Simulator as my local opc da server. When I trigger INIT event, the connection is ok. After triggering the REQ event, it seems nothing happened.

ID input is opc[127.0.0.1:opcserversim.Instance.1:2000:0.01:Int64Value:IntegerValue]
  • Attachment: EzOPC.png
    (Size: 28.31KB, Downloaded 76 times)
  • Attachment: Test.png
    (Size: 72.65KB, Downloaded 84 times)
Re: How to subscribe or publish with OPC DA? [message #1834903 is a reply to message #1834897] Fri, 20 November 2020 07:34 Go to previous messageGo to next message
Alois Zoitl is currently offline Alois ZoitlFriend
Messages: 1582
Registered: January 2014
Senior Member

I must confess I've never used the OPC DA client myself. We nowadays mostly use OPC UA. However I see one problem that your output RD_1 is not connected. This leaves the output as ANY and therefore the code in the background does not know what to do. Furthermore I see that your input tag has 64 in it but you configured an INT value as input which is 16 bit. Can this be a problem?
Re: How to subscribe or publish with OPC DA? [message #1834935 is a reply to message #1834903] Sat, 21 November 2020 06:48 Go to previous messageGo to next message
ys guo is currently offline ys guoFriend
Messages: 4
Registered: November 2020
Junior Member
I tried it the way you said, but the result is the same. When I build the FORTE, there are some errors. The attachment is the source code I modified. Did I do something wrong?
Re: How to subscribe or publish with OPC DA? [message #1835308 is a reply to message #1834935] Mon, 30 November 2020 14:29 Go to previous messageGo to next message
Alois Zoitl is currently offline Alois ZoitlFriend
Messages: 1582
Registered: January 2014
Senior Member

Sorry for the late reply. The changes seem correct for me. Wold you mind contributing them back? A description how this can be done can be found here: https://www.eclipse.org/4diac/en_help.php?helppage=html/development/contributeToForte.html
Re: How to subscribe or publish with OPC DA? [message #1836050 is a reply to message #1835308] Sat, 19 December 2020 02:36 Go to previous messageGo to next message
xin zhao is currently offline xin zhaoFriend
Messages: 7
Registered: December 2020
Junior Member
Alois Zoitl wrote on Mon, 30 November 2020 14:29
Sorry for the late reply. The changes seem correct for me. Wold you mind contributing them back? A description how this can be done can be found here: https://www.eclipse.org/4diac/en_help.php?helppage=html/development/contributeToForte.html


The patch is ready but we failed to commit to gerrit.

It seems that we all(three people) cannot login to gerrit. We can open a thread here or report a bug in the bug system. But can not login to gerrit?

I have found the related bug on login into gerrit here.
https://bugs.eclipse.org/bugs/show_bug.cgi?id=565060

And commented on the thread.

Regards
Tibalt
Re: How to subscribe or publish with OPC DA? [message #1836062 is a reply to message #1836050] Sat, 19 December 2020 12:41 Go to previous messageGo to next message
Alois Zoitl is currently offline Alois ZoitlFriend
Messages: 1582
Registered: January 2014
Senior Member

Hi,

first of all thanks for working on that issues. It is really great to get the OPC classic communication back working. I hope Eclipse Foundation Staff can soon sort out the problem with Gerrit. May I ask what error message you are getting and how you are pushing. Especially setting up the https is always very tricky. I myself made best experience with private/public keys.

Cheers,
Alois
Re: How to subscribe or publish with OPC DA? [message #1836096 is a reply to message #1836062] Mon, 21 December 2020 00:25 Go to previous messageGo to next message
xin zhao is currently offline xin zhaoFriend
Messages: 7
Registered: December 2020
Junior Member
We haven't made that far to upload public key to gerrit as we cannot login to gerrit webpage. You can see the error in the attchment. We think the login information should be correct as it works for forum and Bugzilla.
  • Attachment: login.png
    (Size: 17.02KB, Downloaded 58 times)
Re: How to subscribe or publish with OPC DA? [message #1836099 is a reply to message #1836096] Mon, 21 December 2020 07:32 Go to previous messageGo to next message
Alois Zoitl is currently offline Alois ZoitlFriend
Messages: 1582
Registered: January 2014
Senior Member

Oh, yes I forgot about that. I think than the writting to the bug report is exactly what you needed to do. I hope we get this sort out soon.
Re: How to subscribe or publish with OPC DA? [message #1836135 is a reply to message #1836099] Tue, 22 December 2020 10:30 Go to previous messageGo to next message
xin zhao is currently offline xin zhaoFriend
Messages: 7
Registered: December 2020
Junior Member
Ha, the bug is fixed and we can login now.

We fixed the OPC DA issue in 1.8.x branch. Gerrit only accepts commits for push=HEAD:refs/for/develop and I believe that the commits are pushed to "remotes/upstream/develop" ?

Can the bug fix be done in branch 1.8.x?


Regards
Tibalt
Re: How to subscribe or publish with OPC DA? [message #1836142 is a reply to message #1836135] Tue, 22 December 2020 13:14 Go to previous messageGo to next message
Alois Zoitl is currently offline Alois ZoitlFriend
Messages: 1582
Registered: January 2014
Senior Member

Great. Unfortunately we currently do not have the resources to maintain several versions. Therefore I would kindly ask if you could push it for the 1.13.x branch. This is our current maintenance branch.
Re: How to subscribe or publish with OPC DA? [message #1836170 is a reply to message #1836142] Wed, 23 December 2020 05:51 Go to previous message
xin zhao is currently offline xin zhaoFriend
Messages: 7
Registered: December 2020
Junior Member
OK.

We tried 1.13 IDE and found many bugs so we resort to 1.12. It is much more stable. Now we are going to focus on 1.12 to add our own FBs.

As OPC DA are tested under forte 1.8.4, we are thinking that have fortes with different versions (for example, 1.8.4 and 1.12) to run together to accomplish the functions. Let's see if that works.

If we have more resources, we will try to move to 1.13 and push the OPC DA fix.
Previous Topic:how can i get/set more values by one FB CLIENT_1 in OPC DA
Next Topic:Virtual DNS file cleared IDE 1.13.0
Goto Forum:
  


Current Time: Fri Apr 19 10:13:45 GMT 2024

Powered by FUDForum. Page generated in 0.03274 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top