Replies: 1 comment 2 replies
-
Be more careful when you try to reconstruct these NodeIds. Siemens puts actual quotes into the String identifier. e.g. NodeId nodeId = NodeId.parse("ns=3;s=\"DB100_BOOL\".\"xBool_0\"); or NodeId nodeId = new NodeId(3, "\"DB100_BOOL\".\"xBool_0\""); In general, though, you cannot rely on a NodeId having any relation to its position in the browse hierarchy. Some servers do use relatively predictable String-based NodeIds, but it's absolutely not a requirement. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am just getting started with OPC for an upcoming project and ran into some issues interacting with OPC.
I am most likely just missing some basic OPC knowledge, but I wasn't sure where to look for it, so any help or guidance is appreciated.
We have a Demo PLC in our office that I can browse using UaExpert:

And I wrote some code that allows me to browse children starting from "DataBlocksGlobal":
This generates the following oputput:
This allows me to read the actual values in xBool_0 for example.
When I try to browse the node directly however, I get the error Bad_NodeIdUnknown:
So my question is: How exactly is the path to a node build?
Beta Was this translation helpful? Give feedback.
All reactions