If you want to use a predefined OPC UA node in your commissioning file, you can use a Node reference to achieve that. One use case of that is placing newly defined nodes at the certain point in the OPC UA server tree. The other possibility is to publish data of predefined nodes as MQTT capable nodes.
It is possible to create an instance of an object type by using the resource type Cybus::Node::OpcuaObject
---description:Test for placing a ToolType inside a MachineTool instancemetadata:name:Tooltype placement testresources:opcuaServer:type:Cybus::Server::Opcuaproperties:hostname:192.168.178.46securityModes: ['None','SignAndEncrypt']securityPolicies: ['None','Basic256Sha256']nodesetFiles: ['di','machinery','machineTool']allowAnonymous:trueport:4841######################################## referencing the "Machines" folder# which got provided by the Machinery# nodeset file#######################################machineRoot:type:Cybus::Node::OpcuaReferenceproperties:parent:!refopcuaServerreferenceNodeId:'i=1001'namespaceUrl:'http://opcfoundation.org/UA/Machinery/'######################################## instantiating a MachineToolType# from the MachineTool type#######################################testMachineToolType:type:Cybus::Node::OpcuaObjectproperties:parent:!refmachineRootbrowseName:MyMachineToolTypeTestobjectTypeName:MachineToolTypesourceNamespaceUrl:'http://opcfoundation.org/UA/MachineTool/'######################################## referencing the "Equipment" subfolder# of the instantiated toolType#######################################EquipmentFolder:type:Cybus::Node::OpcuaReferenceproperties:parent:!reftestMachineToolTyperelativeBrowsePath:'/4:Equipment'######################################## add a toolList type# of the instantiated toolType#######################################toolList:type:Cybus::Node::OpcuaObjectproperties:parent:!refEquipmentFolderbrowseName:ToolsobjectTypeName:ToolListTypesourceNamespaceUrl:'http://opcfoundation.org/UA/MachineTool/'########################################### instantiating a ToolType and placing it# into the tools list folder of the instance#########################################demoToolInstance:type:Cybus::Node::OpcuaObjectproperties:parent:!reftoolListbrowseName:DemoToolobjectTypeName:ToolTypesourceNamespaceUrl:'http://opcfoundation.org/UA/MachineTool/'
Preexisting nodeIds can be referenced using an absolute nodeId, e.g ns=1;s=1001. It is also possible to reference a nodeId by a browsePath from a certain start point that needs to be specified as well. Please review the BNF documentation for this: