Location of XML Model Used To Generate Opc.Ua Stack|OPC UA Implementation: Stacks, Tools, and Samples|Forum|OPC Foundation

Avatar
Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
Lost password?
sp_Feed sp_PrintTopic sp_TopicIcon
Location of XML Model Used To Generate Opc.Ua Stack
Avatar
EG
Member
Members
Forum Posts: 35
Member Since:
12/06/2021
sp_UserOfflineSmall Offline
1
03/08/2023 - 01:58
sp_Permalink sp_Print

I understand the the UA-ModelCompiler is used to generate the UA-.NETSTandard Opc.Ua stack. However I cannot find where the XML is stored that is used to produce this C# code.

My interest is that I would like to run additional auto code generation based on the XML, in order to provide additional type safety for my application.

Avatar
Randy Armstrong
Admin
Forum Posts: 1564
Member Since:
05/30/2017
sp_UserOfflineSmall Offline
2
03/08/2023 - 06:28
sp_Permalink sp_Print

The ModelCompiler can use a NodeSet2 file as an input.

The NodeSets for different specifications are here: https://github.com/OPCFoundati.....UA-Nodeset

Avatar
EG
Member
Members
Forum Posts: 35
Member Since:
12/06/2021
sp_UserOfflineSmall Offline
3
03/08/2023 - 07:06
sp_Permalink sp_Print

Sorry - to be clear I am interested in the ModelDesign XML. Am I correct that there is a ModelDesign for the Opc.Ua namespace?

I would be interested in the ModelDesign files for other applications too (if available) e.g. https://github.com/OPCFoundati.....iModel.xml but this was deleted in https://github.com/OPCFoundati.....it/fac8452 

Where are the ModelDesign files for DI and others now stored?

Avatar
Randy Armstrong
Admin
Forum Posts: 1564
Member Since:
05/30/2017
sp_UserOfflineSmall Offline
4
03/08/2023 - 17:07
sp_Permalink sp_Print sp_EditHistory

There are no ModelDesign files for most companion specifications.

The NodeSet2 files are the normative definition and can be used to generate C# code.

All UA Core types that appear in the AddressSpace are generated from a ModelDesign here:

https://github.com/OPCFoundati.....esign.v105

types that are used in service calls use a different XML schema for input.

The DI design files in that folder are not maintained - the latest versions of DI are NodeSet2 only.

Note that the ModelCompiler allows you to include a definitions in a NodeSet2 when creating a ModelDesign.

(i.e. when given a XML input the ModelCompiler detects the schema and loads it appropriately).

Avatar
EG
Member
Members
Forum Posts: 35
Member Since:
12/06/2021
sp_UserOfflineSmall Offline
5
03/09/2023 - 00:48
sp_Permalink sp_Print

Randy Armstrong said

https://github.com/OPCFoundati.....esign.v105

  

Great, thanks. This is what I was looking for.

I am using this for my own code generator, not the ModelCompiler. And although I could process a NodeSet2 XML file with enough effort, I find working with the ModelDesign XML much easier.

Forum Timezone: America/Phoenix
Most Users Ever Online: 510
Currently Online:
Guest(s) 37
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Forum Stats:
Groups: 2
Forums: 10
Topics: 1435
Posts: 4855