cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Help us improve the PTC Community by taking this short Community Survey! X

Architecture Storing PLC Tag data

Vipul_Oswal
12-Amethyst

Architecture Storing PLC Tag data

Hi Team,

 

I am looking to better understand/ best practice of storing PLC tag data from the machine,

I am using Azure SQL as a persistence provider.

 

Current architecture.

  • We are logging roughly 100 tags (might scale to ~500) from one machine into the value stream
  • We have 10 such machines (planning to scale to ~50).
  • We are logging the data in value stream to show data in the dashboard for monitoring like temp, head pressure etc
    • Dashboard can show data for 2days 
    • Then pushing rest of the data to datalake to have more historical data.

With above configuration, we are getting around 3500 tags every min for 1 machine, When we scale to multiple and more tags, this number will surely grow and value stream being a table isn't able to handle.

 

  • What are the different logic you use for this architecture ?
  • What are best practises?
  • Is having only parallel Azure IOT event hub to push data to datalake?

 

Please suggest!

ACCEPTED SOLUTION

Accepted Solutions

@Vipul_Oswal ,

 

Are you using Kepserver to obtain this data or just Azure IoT Hub?  If so, Kepserver has a Data Logger add-on that allows you to push data directly from KepServer to the database / table of your choice. 

 

If you're using Azure IoT Hub, you have several options on how you process the data.  You can have up to 20 consumer groups on an IoT Hub that another application can subscribe to.  Additionally, you can add extra endpoints to send data directly to an Azure Storage account.  

 

On the ThingWorx side, I typically stay away from Value Streams for IoT Hub messages as I don't have as much control over the data that gets inserted.  For example, the read time on your IoT Hub messages will be different than the time it arrives at ThingWorx.  However, your Value Stream will record the time that it arrived at your Thing.

 

As far as best practices go, are you trying to create the whole solution within ThingWorx or are you willing to use other Azure services to accomplish your goal?  ThingWorx by itself might be able to get you there, but some of the Azure solutions like ServiceBus, Functions, Stream Analytics, etc. can really help when it's time to scale up.

 

Hope that helps

- Nick

View solution in original post

3 REPLIES 3

@Vipul_Oswal ,

 

Are you using Kepserver to obtain this data or just Azure IoT Hub?  If so, Kepserver has a Data Logger add-on that allows you to push data directly from KepServer to the database / table of your choice. 

 

If you're using Azure IoT Hub, you have several options on how you process the data.  You can have up to 20 consumer groups on an IoT Hub that another application can subscribe to.  Additionally, you can add extra endpoints to send data directly to an Azure Storage account.  

 

On the ThingWorx side, I typically stay away from Value Streams for IoT Hub messages as I don't have as much control over the data that gets inserted.  For example, the read time on your IoT Hub messages will be different than the time it arrives at ThingWorx.  However, your Value Stream will record the time that it arrived at your Thing.

 

As far as best practices go, are you trying to create the whole solution within ThingWorx or are you willing to use other Azure services to accomplish your goal?  ThingWorx by itself might be able to get you there, but some of the Azure solutions like ServiceBus, Functions, Stream Analytics, etc. can really help when it's time to scale up.

 

Hope that helps

- Nick

Thank you @nmilleson  for the response!

 

I would like to explore both the options

Start with Thing Worx and then parallelly use Azure solutions, as we definitively would be scaling up and huge data might come in. We already are using Azure datastore to store some other kind of data. If you can guide with more info it would be helpful to make some decision.

 

Regards,

Vipul 

@Vipul_Oswal ,

 

I would start here for Azure IoT reference architecture.  There are suggestions and examples straight from Azure on how to architect your solution.  ThingWorx will be useful for things like visuals, device state, alerts, orchestrations, integrations to other devices, integrations to 3rd party applications, etc. Additionally, if you're using Azure VMs to host ThingWorx, you can utilize the VM Managed Identity to authenticate to all of your Azure services.  Let me know if you have other questions.

 

- Nick

Announcements


Top Tags