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.
Browsing Nodes results in zero items
You are right about the BrowseNodes in Examples, I have somehow confused it, it browses both the branches and the leaves.
I do not know why running under debugger should make any difference. I have reviewed your code and do not see any obvious problem. It is a mystery.
One possibility would be to deploy the so-called OPC Analyzer, and capture the communication between the client and the server and then determine who is "to blame" or what is where it gets wrong. The downside is that it is an extra work (are you willing to do that?) and that sometimes, because the OPC Analyzer acts as both OPC Client and Server and sits in the middle, its usage actually changes the behavior - making it useless.
Regards
Please Log in or Create an account to join the conversation.
The Example should also work, because it is calling BrowseNodes, at least the version I claim does so. But I think I already figured it out. The Problem is that if I am starting the program via debugger, it won’t give me any results for the CodeSys Server but if I start the .exe it will work just fine.
Even though I managed to solve this kind of Problem somehow (by starting the .exe not the debugger) I can show you my code for browsing the servers. Maybe you can explain to me why the call via debugger has impact on the result.
- The Serverdescriptor is generated by the ServerElement from BrowseServers
For better understanding I am showing you the different results (same Program).
Result of the debugger
Attachment OPCForum_Debugger.PNG not found
Result of runing the .exe (log)
Attachment OPCForum_Log.PNG not found
The last part of question (PLC-Name) was just a mistake of mine and has nothing to do with QuickOPC.
Best regards
Please Log in or Create an account to join the conversation.
As you can see from the browsing dialog (which you claim works OK), the server has no branches under the root, only leaves (items).
This is why the example from DocExamples returns 0 nodes: because you have chosen the example that browses branches, not leaves.
As to your own example, I will need to see the code that calls the LoadNodesForBranch function. I need to know the initial value of especially the "poParentNode", that's quite relevant.
It should be noted that the browsing dialog also uses the very same BrowseNodes method of QuickOPC, so if there is a difference in outputs, there must be a difference in inputs.
I do not understand the following part at all - if it is important, please explain/elaborate: "I also want to mention that I managed to configure the server so that I can browse all my nodes, but the PLC-Name was missing, which will lead to the point that subscribing to items won’t work because the client can’t find these.".
Best regards
Please Log in or Create an account to join the conversation.
I am currently developing a service where one part is to browse the whole structure of an OPC-Server. Right now, I am using a CodeSys Testserver. Your Demo Application (OPC-DA) can browse all nodes of this server. The Problem is that if I try to browse all nodes with the EasyDAClient class, the result will always be 0 nodes. I already tried your VB Examples and there will also be 0 nodes for this server. So, in conclusion your example of browsing nodes (which is like my approach) won't find any nodes, but your Demo Application can do so. I also want to mention that I managed to configure the server so that I can browse all my nodes, but the PLC-Name was missing, which will lead to the point that subscribing to items won’t work because the client can’t find these.
My Code (using defualt settings):
- works fine with OPCLabsKitServer but returns 0 nodes on CodeSys Server
[hr]
This is correct and wanted as the result of BrowseNodes()
Attachment OPCForum_DemoApp_2020-04-01-2.PNG not found
I changed the Server to the CodeSys Server in the Example...
Attachment OPCForum_Example_2020-04-01-2.PNG not found
Please Log in or Create an account to join the conversation.