Code Monkey home page Code Monkey logo

Comments (7)

oroulet avatar oroulet commented on July 19, 2024

I am not entirely sure to understand but if you create a new object of type pump it is expected that the pump object also contains ManufacturerName and ModelName since the Pump object inherits FieldDevice.
Id you create an object of type FieldDevice, it should only have two properties.

But what is strange in your screenshots is that the properties have a T on them, that means that they are types....I think they should not.... might be a bug at open62541 tooo

from opcua-modeler.

kleskjr avatar kleskjr commented on July 19, 2024

thanks, oroulet! I wasn't aware that the subnodes in Objects Type mean inheritance. The fact that variables remain type is a separate issue. I will have a look and will open a new issue if it comes from the modeler.

from opcua-modeler.

zerox1212 avatar zerox1212 commented on July 19, 2024

Can you start with a brand new address space in modeler and hand build these types. Build the pump type, then build the device type and put the pump inside it. Then instantiate the device type as an object in your folder.

I do not really agree with @oroulet as I think you should get a copy of your device type structure, not the strange inheritance you are showing. Unless your XML has extra stuff which is creating the inheritance.

In the past when building types in modeler, I would always get an exact copy of the type structure when instantiated.

from opcua-modeler.

kleskjr avatar kleskjr commented on July 19, 2024

@zerox1212, in a new address space, the results are similar. A pump objects inherits the properties of the device ObjectType, and a device object doesn't consist of any pumps. If I create another Device2 ObjectType, and put a Pump Object in, the device2 object still has no pump in it.

from opcua-modeler.

kleskjr avatar kleskjr commented on July 19, 2024

Are the variables that constitute the ObjectType supposed to be of type Variable or DataType? In the open62541 example the names are DataTypes, while in opcua-modeler, I could set only variables.

from opcua-modeler.

zerox1212 avatar zerox1212 commented on July 19, 2024

Interesting. I'll have to dig up my old projects and test it. I don't remember that happening, but I haven't been working with UA for a long time.

In my last project I had type Variable under my objects, not type.

from opcua-modeler.

oroulet avatar oroulet commented on July 19, 2024

@kleskjr i am quite sure the open62541 example is broken. Look at other object typed in standard address space and open bug report for them

from opcua-modeler.

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.