IIH-API Data Access for OPC UA-based Model

0
Dear community We are developing a solution for a client where IIH is set up using an OPC UA data model (through SiOME). Our application needs to access this data through the dataservice API. HOWEVER, the API does not seem to return any variables on the OPC UA datamodel.  The API only returns variables created in the native asset model, and nothing else.  Can you please advise on what i need to do? This is a potential blocker for the project.  Thank you so much Best Regards Brij  
asked
4 answers
0

Hi Brij, it is not possible to reach the OPC UA model from the dataservice API but it's possible to reach it using the integrated OPC UA Server in the IIH. You can reach the OPC UA server of your Edge device using IP Adress of device:62520

 

Here is the documentation of the common configurator:

https://support.industry.siemens.com/cs/document/109826743/industrial-information-hub-v1-9?dti=0&lc=en-GB

 

Here is an example explaining how to reach the server:

https://github.com/industrial-edge/iih-semantics-getting-started

 

Also the Graphql function might be handy here, however it's still under development 

answered
0

Thank you Ahmed, 

appreciate your response. 

This does not help our application because it is built to strictly talk to IIH via the API endpoint. Is there an alternative here ? do i need to create an asset model in IIH itself instead of using the OPC UA DataModel? 

 

Thank you

 

Brij

answered
0

Hi Brij,

 

what you want to achieve is possible.

Prerequisite is that you have installed:

- Common Configurator

- IIH Essentials

- IIH Semantics

 

1. You need to integrate IIH Essentials to IIH Semantics. This you can do in the settings of IIH Essentials => Rest you can do from the Common Configurator now

2. Import your OPC UA model like you already to. The OPC UA model cannot be queried via REST API. Only Asset model can.

3. Create Asset mode based on OPC UA model: In Common configurator open "Define Data" > "Organize". Select on the left side instead of "Data sources", "OPC UA" and on the right side "Asset Model". You need to manually create one parent Asset.

image.pngFinal step drag and drop the whole or part of the OPC UA model to the Asset model.

 

After that you can query your "OPC UA model" via REST API

 

Thomas

 

 

 

answered
0

Hi Brij,

 

sorry I forgot the final step.

In the Asset model you need to set the checkbox "Storage" for each variable to true.

 

Then you will also get the variables via API

 

BR

Thomas

answered