I'm trying to model a Metso valve with UaModeler. I've modeled the valve as a subtype of DeviceType, and added new BlockTypes (Transducer, AnalogOutput, Resource and PIDController) according to OPC UA DI Specification and the user guide of the valve. I've also added some parameters to the ParameterSet by using the Override-button in UaModeler.
Here is a picture of the type structure in UaModeler:
[img width=150]http://dl.dropbox.com/u/18898677/device-type.png[/img]
However, when I create an instance of the device to the UaModeler, ParameterSet-objects disappear from the BlockTypes. Also reference to the MetsoBlockType has disappeared from the SupportedTypes-object.
Here is a picture of the device instance in UaModeler:
[img width=150]http://dl.dropbox.com/u/18898677/device-instance.png[/img]
When I generate the code for Visual Studio 2010 with 1.3.0 template set for CPP Server, more information disappears. There are no blocks generated below Blocks-object.
Here is a picture of the device instance when viewed with UaExpert:
[img width=150]http://dl.dropbox.com/u/18898677/device-client.png[/img]
I've used the hello world example project from the C++ SDK as a base for the project, and edited the following lines to match our generated code:
Code: Select all
// Add generator for node manager
ms::NodeManagerMetso* pNodeManager = new ms::NodeManagerMetso(true);
pServer->addNodeManager(pNodeManager);