Questions on Loading IRDI Nodeset

88 views
Skip to first unread message

Gang Wang

unread,
Jul 7, 2021, 2:19:35 AM7/7/21
to open...@googlegroups.com, Gang Wang
Dear Open62541 Committee,

I have a question to load the PA-DIM nodeset, which relies on the IRDI nodeset. There is no problem loading these nodesets under my old open62541 repos (before Dec. 2020), but the latest version (https://github.com/open62541/open62541) does not support these nodesets.  

You can find these two nodesets in the folder "open62541/deps/ua-nodeset/PADIM/" or on https://github.com/OPCFoundation/UA-Nodeset/blob/0a647e1d88/PADIM/Opc.Ua.IRDI.NodeSet2.xml.

The stack of our nodeset is "UA -> DI -> IRDI -> PADIM -> Apps". There is no problem with loading UA and DI nodesets. However, when loading IRDI, it fails, as shown in the following.

"SecureChannel 0 | Session g=00000001-0000-0000-0000-000000000000 | AddNode (ns=3;s=0112/2///61987#ABN614#001): Parent node not found
SecureChannel 0 | Session g=00000001-0000-0000-0000-000000000000 | AddNode (ns=3;s=0112/2///61987#ABN614#001): The parent reference for is invalid
error/server Adding the IRDI namespace failed. Please check previous error output."

irdi-loading-error.png

I checked the parent-child relations among these related objects, it seems no problem on XML files. 

To make a simple test on your side, you can use /modify the existing example of "server_node_plcopen.c" to test it under the folder "example/nodeset/". The only place you need to revise is its CMakeLists.txt (e.g., line 94 in https://github.com/open62541/open62541/blob/master/examples/nodeset/CMakeLists.txt ) to direct the place of your IRDI.xml file (Opc.Ua.IRDI.NodeSet2.xml). 
If you use the standard version (e.g., using "git submodule update --init --recursive" to load the nodesets ), you can change "FILE_NS" to "${FILE_NS_DIRPREFIX}/PADIM/Opc.Ua.IRDI.NodeSet2.xml". And then, you can compile and run plc program. 

Any comments or suggestions are welcome. Your help is greatly appreciated. If you have any questions, please feel free to let me know. Thank you.

Best,
Gang Wang
Reply all
Reply to author
Forward
0 new messages