Page 1 of 1

ua model to represent calendar events?

Posted: 10 Sep 2014, 10:56
by oroulet

We are unified automation customer and currently developing an application using the .net sdk and uamodeller. it works quite well but we are now concidering exporting planned maintenance of a shop-floor through opc-ua. How should we represent this? Has anyone experience with modeling this kind of data?

We are considering a model like this

-- Unit1Object
----- PlannedMaintenance
-- Unit2Object
----- PlannedMaintenance
-- Unit3Object
----- PlannedMaintenance

A maintenance is defined byt some attributes like startdate, duration , descriptions, etc ...
Ideally planned maintenance should contained an Array of MaintenanceObjects. But array of custom objects seems not to be very well supported.
We could dynamically add a new node under each units for every planned maintenance. But then it is difficult for client ot subscribe to them. They will need to browse at a given time interval...

Any ideas or comments?

Re: ua model to represent calendar events?

Posted: 11 Sep 2014, 21:37
by Support Team
Hi Olivier,

There is not much background in your question but I think OPC UA Alarms & Conditions may cover your requirements.

Every time you have a new planned maintenance coming up, you can create a maintenance condition object and you can add it anywhere in the address space - ideally to the object that requires maintenance.

A client just needs to create one event monitored item that filters for the maintenance condition event and will get informed about any new maintenance condition or about state changes of existing conditions through events. If a client connects to a server, it can call Refresh on the new event monitored item and will get all maintenance condition where the Retain property is set to True.

Another option is to use an array of structure data type like mentioned in your post. You can generate code for structure data type support for the .NET SDK with the UaModeler. UaExpert can now display user defined structure data types and also the C++ SDK is able to work with unknown custom structure data types. This generic support will also be added to the .NET SDK.

Best Regards,
Unified Automation Support Team

Re: ua model to represent calendar events?

Posted: 12 Sep 2014, 14:14
by oroulet
Great, I did not realize how easy it is to use custom structs as datatypes.
Thank you for your help