How do I format Browse Path in Opcua_Any, using UA Expert?

Hey guys,
I’m having a hard time understanding how to convert the Node ID in UA Expert into a Channel Browse Path. I’m trying to make my B&R PLC see OPCUA tags in an OMRON PLC. This is what my OMRON tag looks like in OPCUA:


What would the Node ID look like if it was a channel browse path in OPCUA_Any?

I’ve been referencing this page, but the examples givin don’t match my Node ID.
B&R Online Help

The browsepath implementation needs everything all the way from the “root” so the screenshot you provided is not enough. Can you take a screenshot of the tree structure to the left as well? In general terms you need to specify “BrowseName” for every step all the way from root.

Here are some examples. Maybe you can figure it out youself from them:

Ok, here’s how far I’ve gotten.
This is my tree structure for the OMRON tag, and the info for Main_PLC:

Here’s the info for GlobalVars:

And finally, test (Please mind the extra tags that were created):

From this information, here’s my interpretation of the path:
/0:Root/0:Objects/4:Main_PLC/4:&:&/4:GlobalVars/4:test

This didn’t work unfortunately. The B&R paths include a “Modules” folder that OMRON doesn’t have. what exactly am I missing here? I feel like I’m close.

Hi,

I’m not a expert for OPC UA, but from the UAexpert screenshots, I would try:
0:Root/0:Objects/4:Main_PLC/3:GlobalVars/4:test

image
image
image

I think, the “4:&:&” inside the B&R string is because of the support of so called “application modules”, and has to be left out on the omron system.

Best regards.

Hmm, that didn’t work.


If I could get anyone else to confirm that:
0:Root/0:Objects/4:Main_PLC/3:GlobalVars/4:test
is the correct path, I could see if the issue could be coming from somewhere else.

Hi,

For me it’s the correct path, to build it use go on every node from the root to your node in UaExpert, then check the BrowseName. WIth this get the number and the name then separate them by a : add a / if you need to add something behind.

I think the problem is from another thing. On the screenshot the “ModuleOk” is FALSE so the opcua_any didn’t connect to the opcua server, you can check in the logger the error.

Regards,

Florent

Update: we’re one step closer.


I had to update the security mode and security policy to match the OMRON OPC settings, and add the BNR to a trusted client in sysmac. I’m still trying to find what the error code 2158690304 is, but at least my Module is now ok.

I kind of suspect the error code has something to do with certificates. Was there anywhere in Automation Studio to put in certificates?

Error code are by default in decimal but OpcUa error code in AS Help are in Hexadecimal.

So error code 2158690304 = 0x80AB0000 (Bad_InvalidArgument) link to the online help page B&R Online Help

You can check the logger to have both errors ? The error count is 2.

About certificate you can add an SSL configuration for OPCUA in the configuration view (B&R Online Help).
You can add a SSL configuration in the opcua_any security configuration (B&R Online Help)

But to debug opcua_any I would recommend first to test without SSL config and certificate

I don’t think any of these errors are related to the OPCUA_ANY device. My ETH is IF3 so ya.


I’ve also tried searching Opc related terms to see if the warnings contain any information, but no luck with that as well. I’ll be trying out the certificates, as I don’t really know which argument could possibly be invalid:

Maybe something in this screenshot could be wrong? Anyways, more updates coming.

For the errors in the logger, you have a difference between your hardware configuration and real hardware on the PLC. You have configure a X20BR7300io and it’s not plugged on the real hardware. So it’s no related to opcua_any.

Based on the screenshot, if you can connect on UaExpert with same parameters:

  • Security mode SignAndEncrypt
  • Security policy Basic128Rsa15
  • Anonymous user
    And if you can get value of the variable using UaExpert, the configuration is ok.

In the logger, if you check all checkbox to see all loggers, is there others errors/warnings?
I’m pretty sure it’s under “Connectivity” logger but not sure.
Maybe you can share the loggers ?

I don’t think there’s an option on the forums to share files, so I’m just gonna share this:

Its not pretty, but its the whole log I had. You can CRTL-F and check for the keywords relating what we want. In my Automation Studio, I’ve tried every keyword relating to “Connectivity” or “Security” with no luck.

I’m currently playing around with SSL Configuration just in case that was the cause.

Edit: I just found out what you meant by Connectivity:


The catagory doesn’t really filter any of the tags for me… Perhaps that means there’s no entries in it?

I think it’s not related to SSL Config as the “ModuleOk” of the opcua_any module seems “TRUE”.
I think about something, did you enabled Opcua in the hardware config of the PLC?
I’ve ask for access to your google docs :slight_smile:

OK PROGRESS AGAIN.


I removed my tag with the path: 0:Root/0:Objects/4:Main_PLC/3:GlobalVars/4:test
and the error is gone. I suspect the path wasn’t correct. Currently gonna play around with the syntax.

Ok nice.

Can you create a System Dump using the SDM webpage and share it by email ? It will contains complete loggers. (the file you shared only contains “System” logger, there is much more to see)

Both errors would be nice to have to determine if there is a permission missing maybe

Update for this forum post… By default you could only see the System entries in the logger. I didn’t know you could expand the Modules to see the other categories, so I thought there was no other entries. I think this is really silly for Automation Studio.

Ok perfect !
You can re-setup you variable in the opcua_any, then restart the PLC. After that in the logger click on the “Since last restart” filter, it will filter all entries from last restart and you can check all the Modules btw.

EDIT: Loggers should be refreshed but you can refresh them also after reboot

Sorry my bad, these errors were from when I already re-entered the variables. These are the errors that come up back when I originally had the InvalidArgument on my OPCUA_Any.
Here’s what the other error looks like btw, it seems to be Automation Studio continuously trying to reconnect:


The binary data from this screenshot:
-1070584042

The binary data from my last post’s screenshot:
-1070584305

I’ve sent you this exact Logger file with email btw, thanks!

Ok I will try to check the logger you send me, for the error you highlight in the screenshot you see the error code in the ASCII Data : 0x80550000
Based on the help link here B&R Online Help:
Bad_SecurityPolicyRejected 0x80550000 The security policy does not meet the requirements set by the server.

Please can you check all the connection failed and check the error code ?
For the one highlighted it’s the wrong Security policy.

From your loggers file, I see the last error is due to SecurityCheck:


One thing is to check the config you use in UaExpert and copy them to the opcua_any settings !