- Posts: 3
- Thank you received: 1
Online Forums
Technical support is provided through Support Forums below. Anybody can view them; you need to Register/Login to our site (see links in upper right corner) in order to Post questions. You do not have to be a licensed user of our product.
Please read Rules for forum posts before reporting your issue or asking a question. OPC Labs team is actively monitoring the forums, and replies as soon as possible. Various technical information can also be found in our Knowledge Base. For your convenience, we have also assembled a Frequently Asked Questions page.
Do not use the Contact page for technical issues.
Problem using brwose with NodeBrowsePath
- NoisternigW
-
Topic Author
- Offline
- Junior Member
-
thank you very much.
That helps me a lot. Now it is working as I expected it.
Thanks for your very fast response on my problem.
Br,
Wolfgang
Please Log in or Create an account to join the conversation.
(1) OpcCmd is based on QuickOPC. In QuickOPC, nodes are identified by node descriptors.A node descriptor can contain a Node ID, a browse path, or both. When it contains both, it is the responsibility of the whoever produces the node descriptor that the node Id and the browse path represent the same node (this, for example, is how node descriptor come out of node browsing). When the node descriptor is consumed, the consumer part (usually inside QuickOPC), if both parts are present, can take either the node ID, or the browse path, whatever is easier or more efficient to work with in particular case. In most cases, it is the node ID (but not always). So, when you have specified a Node ID and a browse path that does not correspond to that node ID, you have already passed in incorrect information. They need to refer to the same node, OR you need to use just one of them. In your case, if what you have in hand is only the browse path, simply do not specify the node ID.
(2) Do not use single quotes around the OpcCmd arguments. If you need an argument that contains characters such as a space or colon, use double quotes around the arguments.
Here is a commands that works, for example:
However, there is a problem with the browse command you want to use. The above example (with read) works, because the default for node ID in that command is none (a "null" node Id). The default node ID in the browse command is the Root node instead. This means that when you specify a browse path with it, you are right in your observation, it will use the Root, as described in (1) above. In order to force the browse command to use the browse path, we need to set the node Id from Root to null. Unfortunately, I have discovered a bug that makes it impossible to achieve in your version of OpcCmd.
I have fixed the bug now. You will need OpcCmd version 5.71.0.20 or later. It should automatically update for you if you have used ClickOnce to get it (from kb.opclabs.com/Tool_Downloads#OpcCmd_Utility ), but it may take a day before it re-checks itself for updates; or you need to force the update somehow.
With the new update, commands like this work:
Note the use of -nsn "" to set the node Id to Null.
I hope this helps
Please Log in or Create an account to join the conversation.
- NoisternigW
-
Topic Author
- Offline
- Junior Member
-
- Posts: 3
- Thank you received: 1
thanks for answering so fast.
It helped a bit, but if I do someting like this:
I always get this answer:
So the command always gives back the RootFolder information. Even if I give an useless path like
Any ideas?
Br,
Wolfgang
Please Log in or Create an account to join the conversation.
does this help? :
opclabs.doc-that.com/files/onlinedocs/QuickOpc/Latest/User%2...%20Browse%20Path%20Format.html
E.g. "[ObjectsFolder]/Data/Static/UserScalar"
Best regards
Please Log in or Create an account to join the conversation.
- NoisternigW
-
Topic Author
- Offline
- Junior Member
-
- Posts: 3
- Thank you received: 1
I have a problem with the option --NodeBrowsePath:
What is the format to use for the browse path? I always get this error:
"Format error: OPC-UA browse path format error: The OPC-UA path string is relative, but no base path was given."
Is there an example how to use it correctly? How to set the base path?
Thanks in advance.
Br,
Wolfgang
Please Log in or Create an account to join the conversation.