Skip to content
  • There are no suggestions because the search field is empty.

Reference Solution: Sending OPC UA and Location Data to Twinzo

What Does This Article Cover?

This article covers the ability to send source data using Intelligence Hub to populate sensors and devices in the Twinzo digital twin platform. Twinzo has a rich Rest API that enables data to be sent to in real-time. The article will demonstrate the use of Intelligence Hub pipelines to get data from OPC UA and Microsoft SQL Server to send it to the Twinzo Rest API.   

Solution Video

Here is a link to that explains the integration between Intelligence Hub and Twinzo.

 

Configuration

Here is a link to the configuration used to put together this example. Download the configuration and import it into Intelligence Hub. Once imported, the password for the MSSQL_KB connector needs to be set to "password".

Configuration Download

The configuration has 4 connectors.   

  • MQTT used to populate Intelligence Hubs MQTT broker with messages to see the messages that are being sent to Twinzo.
  • MSSQL_KB is a cloud database used to source the AMR location information.
  • Twinzo_OPC_UA is an OPC UA connection to pull Production Line attributes from OPC UA and populate Twinzo sensors.
  • Twinzo_RestAPI is used to send sensor and device data to Twinzo using their Rest API.

The configuration has 4 models.

  • BatchSensorData and BatchSensorDataDetail are used to model the sensor data that is sent to the Twinzo Rest API.   These models are mapped in the Twinzo_ProductionLine pipeline.
  • LocationBatch and LocationBatchDetail are used to model the device data that is sent to the Twinzo Rest API.  These models are mapped in the Twinzo_Location_AMR1 and Twinzo_Location_AMR2 pipelines.

The configuration has 3 pipelines

  • Twinzo_Location_AMR1 and Twinzo_Location_AMR2 load AMR position and battery level data from the MSSQL_KB cloud database to the Twinzo Rest API.
  • Twinzo_ProductionLine is used to upload OPC UP sensor data to the Twinzo Rest API 

Other Related Material: