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
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
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.
Final 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
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