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 » opc_ua Browsepath can't use namespace 2(could not translate browse paths)
opc_ua Browsepath can't use namespace 2 [message #1847714] Thu, 04 November 2021 11:29 Go to next message
maa yii is currently offline maa yiiFriend
Messages: 3
Registered: November 2021
Junior Member
When I use the opc_ua protocol, an error is reported when the created FB is deployed. It shows that "could not translate browse paths". could you give me some suggestions? the picture is followed.
Such like this "opc_ua[CALL_METHOD;opc.tcp://localhost:48400/freeopcua/server#;/Objects/2:MyObject/2:multiply]"
Re: opc_ua Browsepath can't use namespace 2 [message #1847718 is a reply to message #1847714] Thu, 04 November 2021 13:14 Go to previous messageGo to next message
Alois Zoitl is currently offline Alois ZoitlFriend
Messages: 1560
Registered: January 2014
Senior Member

Have you tried removing the second 2:?
Re: opc_ua Browsepath can't use namespace 2 [message #1847724 is a reply to message #1847718] Thu, 04 November 2021 13:51 Go to previous messageGo to next message
maa yii is currently offline maa yiiFriend
Messages: 3
Registered: November 2021
Junior Member
Yes, I've tried, but the result is still the same. The Node full path is 0:Root,0:Objects,2:MyObject,2:multiply.
Re: opc_ua Browsepath can't use namespace 2 [message #1847731 is a reply to message #1847724] Thu, 04 November 2021 15:16 Go to previous messageGo to next message
Alois Zoitl is currently offline Alois ZoitlFriend
Messages: 1560
Registered: January 2014
Senior Member

I'm not very good with opc ua but did you create MyObject first?
Re: opc_ua Browsepath can't use namespace 2 [message #1847732 is a reply to message #1847731] Thu, 04 November 2021 15:28 Go to previous messageGo to next message
maa yii is currently offline maa yiiFriend
Messages: 3
Registered: November 2021
Junior Member
yeah, I created. i use other client to communicate with opc ua, is well
Re: opc_ua Browsepath can't use namespace 2 [message #1847889 is a reply to message #1847732] Thu, 11 November 2021 12:57 Go to previous messageGo to next message
Jose Maria Jesus Cabral Lassalle is currently offline Jose Maria Jesus Cabral LassalleFriend
Messages: 16
Registered: January 2021
Junior Member
I don't see anything wrong with your applicaition. Try using another FORTE as your OPC UA server offering the same method at the same path and see if it works. It might be that the opcua library in forte has some issues with freeopcua
Re: opc_ua Browsepath can't use namespace 2 [message #1848010 is a reply to message #1847714] Wed, 17 November 2021 12:02 Go to previous messageGo to next message
Kirill Dorofeev is currently offline Kirill DorofeevFriend
Messages: 70
Registered: February 2016
Member
hi, i did a quick exercise with the freeopcua server. for me, it seems that something is wrong with their TranslateBrowsePathToNodeIds method that we use for method calls. I think that your other client (if this is UaExpert, then I am sure) doesn't use translate..() when calling an opc ua method from a server -- and then it works. With 4diac, you can read a variable from a server using either BrowsePath (using TranslateBrowsePathToNodeIds just as in method calls) or NodeId of the variable. with a freeopcua server, reading a variable works in 4diac when you do it via a nodeId and fails with the same problem as you have for methods when trying to read it via the BrowsePath. So the next step would be to look what does the server returns in its translate...() method, but this is already on the freeopcua side :-)
  • Attachment: freeopcua.JPG
    (Size: 118.21KB, Downloaded 64 times)
Re: opc_ua Browsepath can't use namespace 2 [message #1848109 is a reply to message #1848010] Sat, 20 November 2021 16:56 Go to previous message
Kirill Dorofeev is currently offline Kirill DorofeevFriend
Messages: 70
Registered: February 2016
Member
just today i remembered that we have already had a discussion about the issue some time ago [1]. there, i even figured out how to hotfix this in the freeopcua stack. probably, the hack still works :-)

[1] https://bugs.eclipse.org/bugs/show_bug.cgi?id=571883
Previous Topic:SPI on Raspberry Pi | 4DIAC
Next Topic:Error creating event connection in CFB
Goto Forum:
  


Current Time: Thu Mar 28 12:20:51 GMT 2024

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

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

Back to the top