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:
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:
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.
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.
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.
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?
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’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:
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:
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
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.
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)
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:
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.