How correctly organize properties and methods within MethodSet and ParameterSet|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
How correctly organize properties and methods within MethodSet and ParameterSet
Avatar
Natali Oliinyk
Member
Members
Forum Posts: 3
Member Since:
07/24/2024
sp_UserOfflineSmall Offline
1
10/04/2024 - 10:04
sp_Permalink sp_Print

Hey, I have question about correct devices modelling. I’m using Softing SDK.
Imagine we are creating the subtype of DeviceType, e.g. MyDeviceType.
This custom subtype should have following methods:
-Method1
-Method2

And following properties:
-Property1
-Property2

When I create the instance of MyDeviceType, I see that my properties and methods are created, MethodSet and ParameterSet objects are also created.
My goal is to locate my properties/methods inside MethodSet and ParameterSet objects accordingly.
My question is should I move my properties and methods inside MethodSet and ParameterSet objects on the instance creation level, or it should be somehow done on the level of Type creation?

Thanks in advance!

Avatar
Randy Armstrong
Admin
Forum Posts: 1579
Member Since:
05/30/2017
sp_UserOfflineSmall Offline
2
10/06/2024 - 02:27
sp_Permalink sp_Print

UA allows for typed and untyped instance models.

So instead of creating a MyDeviceType you could manually Methods to the MethodSet and Properties to the ParameterSet.

I believe that is where the DI spec expects them to go but I have not read that document in awhile.

Avatar
Natali Oliinyk
Member
Members
Forum Posts: 3
Member Since:
07/24/2024
sp_UserOfflineSmall Offline
3
10/06/2024 - 06:43
sp_Permalink sp_Print sp_EditHistory

In our case, there is a requirement that our device should be a subtype of a DeviceType. And I’m trying to understand what is the correct way of modelling our device so we have our plain properties under ParameterSet and methods under MethodSet.

For now I see the solution only like that (using Softing library), but not sure it is a proper way:

Root
    >Objects
        >DeviceSet
            >MyDevice
                >MethodSet
                    >Method1
                    >Method2
                >ParameterSet
                    >Property1
                    >Property2
    >Types
        >ObjectTypes
            >BaseObjectType
                >TopologyElementType
                    >ComponentType
                        >DeviceType
                            >MyDeviceType
                                >Method1
                                >Method2
                                >Property1
                                >Property2
                    >MethodSet
                    >ParameterSet
                              

Sorry, do not know how to insert the screenshot of UaExpert here, so described the information model tree like thisEmbarassed

Could you please confirm if I’m on the right way?

Thank you!

Avatar
Natali Oliinyk
Member
Members
Forum Posts: 3
Member Since:
07/24/2024
sp_UserOfflineSmall Offline
4
10/07/2024 - 03:34
sp_Permalink sp_Print

Hey, have already found the way how to override MethodSet and ParameterSet on type level using Softing library, sorry for bothering!

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