Giter VIP home page Giter VIP logo

Comments (9)

MichaelHoffmeisterFesto avatar MichaelHoffmeisterFesto commented on August 10, 2024 1

Hi,
thank you! This is a bug (or at least not intended behavior). Actually, our goal is to provide reading / writing OPC UA and yes, also REST reading / writing. In some point in time, I remember the OPC UA write already working, so it must have regressed.

So, for OPC UA I was now adding in AasEntityBuilder.cs:CreateAddPropertyState() for a x = new PropertyState(..) to have:
x.AccessLevel = AccessLevels.CurrentReadOrWrite;
x.UserAccessLevel = AccessLevels.CurrentReadOrWrite;

Using this, I can write to "normal" AAS Properties. This should cover most of the relevant variables in the AAS mapping, but I am not completely sure. So, please test for desired behaviour.

Currently, I have the change in "MIHO/FixChangePropertiesOPCUA". I will try to PR it to master ASAP.

Best,
Michael

from package-explorer.

MichaelHoffmeisterFesto avatar MichaelHoffmeisterFesto commented on August 10, 2024 1

Okay, this was up to now not my intended scenario ;-)
I take this as a feature request and will leave the issue open.
I will update you via here.
Best
Michael

from package-explorer.

MichaelHoffmeisterFesto avatar MichaelHoffmeisterFesto commented on August 10, 2024 1

For the off-topic topic ,-)
Type 1: You have multiple SDKs available for (automatically) manipulating AASX as a file .. see: SDKs
Type 2: You can serve one or more AASes OPC UA, REST (and more?) and manipulate them as a server.
Type 3: Via "language of I4.0", you can have an agent-like approach of AASes interacting with each other.
What is your interest?

from package-explorer.

SamedAga avatar SamedAga commented on August 10, 2024

Hi,

thank you for your reply :).
Still having problems. I can change the values via ua-expert. However, changes aren't applied to the .aasx file. Restarting the server just resets the values.

Best,

Samed

from package-explorer.

SamedAga avatar SamedAga commented on August 10, 2024

Oh okay, thank you.

Off-Topic:
Is there a way to change the property values of the .aasx in any way (not manually with the explorer). We would like to write data from a machine (rotation of a certain module, temperature etc) to the property values from the aasx. These values change over time. Right now the .aasx is pretty much a static file. Or is that something that will be added in future?

Best,
Samed

from package-explorer.

SamedAga avatar SamedAga commented on August 10, 2024

Hey Michael,

I chose type 2: after a bit of testing, it looks like I finally found a way of changing property values via REST. My json was incorrect, which lead to a few errors -> it would create empty Submodelelements.
Sorry for the inconvenience and thank you for your help. 👍

Best,
Samed

from package-explorer.

gustavocainelli avatar gustavocainelli commented on August 10, 2024

Hello @MichaelHoffmeisterFesto ,

I am with the same problem: I can read and write propreties values using uaexpert, however changes aren't applied to the .aasx file. Restarting the server just resets the values. Is there any news concerning this issue?

Best regards
Gustavo

from package-explorer.

pecanek01 avatar pecanek01 commented on August 10, 2024

Hello @gustavocainelli and @MichaelHoffmeisterFesto I have a same problem as you. Did you solved it ?

from package-explorer.

gustavocainelli avatar gustavocainelli commented on August 10, 2024

hi @pecanek01. Actually I was not able to solve that. Now I am using open62541 server. I build a xml file with the nodes that I need and the nodeset compiler generate the files nedded. https://open62541.org/doc/current/nodeset_compiler.html

But still, you can write new values using an OPC UA client, but if you reset the server, then the values are also reseted.

from package-explorer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.