I created information model as
ns[0] = UA_Server_addNamespace(server, “https://opcfoundation.org/UA/”);
ns[1] = UA_Server_addNamespace(server, “https://opcfoundation.org/UA/DI/”);
ns[2] = UA_Server_addNamespace(server, “http://yourorganisation.org/Opc.NucleoF767ZI.NodeSet/”);
In Opc.NucleoF767ZI.NodeSet I defined NUCLEOF767ZIDeviceType with:
Object|MethodSet|BaseObjectType|Mandatory
Object|ParametersSet|BaseObjectType|Mandatory
MethodSet contains ToggleLD2 as Method with Mandatory as ModellingRule.
ParameterSet contains LD2 as Variable PropertyType Mandatory.
I created an instance NUCLEOF767ZI_01. To generate source file I use open62541 nodeset_compiler. It creates two separate nodes for NUCLEOF767ZIDeviceType ToggleLD2 and NUCLEOF767ZI_01 ToggleLD2. So I need to add callbacks for both.
My question is, It is possible to have only one node ToggleLD2 (for NUCLEOF767ZIDeviceType) and this method will toggle LD2 for an instance (objects), which method I call?
Thank you
1 Guest(s)