I work on a project with UaModeler, including quite a few object- and variable types and need to create a lot of methods. However there seems to be no way to choose a "TypeDefinition" for my methods' arguments.
Please correct me if I misunderstood, but as MethodNodes only feature an array of InputArguments, I understand the arguments are of type "Property" and can therefore not be assigned any other TypeDefinition, right?
Does the OPC UA specification limit the use of input arguments to BasicDataTypes with PropertyType or is this behaviour specific to UaModeler? (I couldn't find any advice in the specs)
Say I have a function (fictional examplefunction in pseudocode)
Code: Select all
moveIt( [in] struct Units, [in] struct Values, [in] enum RotationDirection, [out] struct MyEndPoint)
Code: Select all
Units {
distance: inches, //(Enum)
time: seconds, //(Enum)
weight(Enum): lbs //(Enum)
}
Being told that using custom DataTypes is not a good idea if the provider shall be of any use to generic clients, I wonder:
Is there a way I can pass this DataVariable - which imitates a structure - to the function or do I need to disassemble it to its components? (which is quite a lot of writing for many different scenarios)...
I would highly appreciate your advice on this topic.
Sincerely
AnyOne