07/14/2021
Hello everyone,
I am trying to implement a kind of aggregation solution with OPC-UA. For that, I need my program to be both a client and a server, so that I can get information from different brands of PLC hosting their own proprietary OPC-UA Server, and to offer that information in a single OPC-UA .Net Server.
However, the complexity of the code coupled with my lack of experience in C# is preventing me to do so, so I would like some help or guidance about how to tackle the issue. I’ve got both the Reference Client and Server working, but I fail to see how to mix them…
If I am not mistaken, the Server holds the node information inside the “MasterNodeManager” that gets populated based on the compiled ModelDesign.xml. Problem is, all that information is protected or private, so acceding from the main program is not the way to go, on top of that, the server runs as a Task, so, on my little C# knowledge, problems may arise when reading and writing at the same time.
As a resume, I would like to know from veterans if what I try to achieve is do-able, if launching another thread and have the client share access to the NodeManager is a proper solution or if I should discard the idea an tackle it differently.
Thanks a lot for your time!
05/30/2017
Application developers create one or more CustomNodeManagers which manage their Nodes.
Most developers have no need to alter the MasterNodeManager.
If you are developing an aggregator, you would likely create a new CustomNodeManager subtype from scratch and would not use any of the ModelDesign infrastructure. This code would provide whatever access your server and and client parts need.
1 Guest(s)