Skip to content
This repository has been archived by the owner on Apr 16, 2024. It is now read-only.

Fix export of OPC UA Nodeset2 via UA server plugin #426

Merged
merged 15 commits into from
Dec 29, 2021

Conversation

MichaelHoffmeisterFesto
Copy link
Collaborator

@MichaelHoffmeisterFesto MichaelHoffmeisterFesto commented Nov 16, 2021

**TEST ** DO NOT INTEGRATE AT THIS STAGE **
** CAN BE MERGED FOR X-MAS **

Improve OPC UA Server and export functionality

For further usage scenarios, the OPC UA server and export
functionality was extended to provide a better export to
SiOME and open62541.

However, due to the experienced limitations of the OPC
Fundation stack, the code still feels indeterministic
and incomplete. Further improvement attempts
were made (actually hours of rying out) but did
not succeed.

  • Use a "organizes" relitionship for top-level
    AASROOT and Dictionaries objects
  • See top-level objects in SiOME
  • Cannot exclude the "HasComponent" relationship,
    so objects seem to be twice
  • Cannot replace auto-generated "Dictionaries"
    objects
  • strongly filter generated nodes to exclude
    duplicates
  • The "-add-root-item" option is not recommended

The default "AasxPluginUaNetServer.options.json"
can be used to change the bhevaior. The tested
configuration is:

{
  "Args": [
    "-single-nodeids", // recommended for SiOME & Open62541
    "-single-keys", // recommended for SiOME & Open62541
    // "-add-root-item", // do not use!
    "-link-root-as-component", // recommended for SiOME & Open62541
    "-simple-data-types",
    "-ns",
    "2",
    "-ns",
    "3"
  ]
}

* add root node for SiOME
* simple data types for
   SiOME
* try to cleanup plugin
  for US server / Export
* still one error message
* fiex to pass Check.ps1
* for UA server/ export
* do not duplicate logging
* rendering of errors
* auto close/ no auto close
* add root item as folders type
* to prepare for Check.ps1
* improvements for model
   export of OPC UA
* filtering of double references
* other referencing from
  folder "Objects"
* to pass Check1.ps1
* fixes for OPC UA export
  (no double root objects)
* investigate amendments for
  nodeset; but not successful
* reject idea to amend nodeset because
  of complexity tradeof
* Finalize and test changes
  up to a level to be merged in
  master
* Prepare for Check.ps1
* Fix issues for InspectCode.ps1
@aorzelskiGH aorzelskiGH merged commit 708ab70 into master Dec 29, 2021
@felando1984
Copy link

May I ask whether there is some guidances or references if I want to update the value in aasx-package-explorer which variable connected to opc ua server? I exported the OPC UA Nodeset2 XML file, but no idea to connect opc server I had.

@MichaelHoffmeisterFesto
Copy link
Collaborator Author

@felando1984
Copy link

felando1984 commented Jan 11, 2022 via email

@MichaelHoffmeisterFesto
Copy link
Collaborator Author

@felando1984
Copy link

felando1984 commented Jan 11, 2022 via email

@MichaelHoffmeisterFesto
Copy link
Collaborator Author

@felando1984
Copy link

felando1984 commented Jan 11, 2022 via email

@MichaelHoffmeisterFesto
Copy link
Collaborator Author

@MichaelHoffmeisterFesto
Copy link
Collaborator Author

@felando1984
Copy link

felando1984 commented Jan 11, 2022 via email

@aorzelskiGH aorzelskiGH deleted the MIHO/FixOpcUaExport2 branch January 13, 2022 08:26
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants