03/27/2024

IIoT - Use Telegraf app to sample Realtime Data automatically

Disclaimer

The goal is to use ctrlX CORE or a ctrlX OS installation in order to store and monitor High Frequency Signals for Condition Monitoring. This topic has already been covered here.

So what is the difference? This solution is using the Telegraf app and not Node-RED and is a configuration also suitable for people who don't know how to program and it is easily reproducible. On the other hand it is less flexible. 

Oversample Telegraf app

 Requirements

  • ctrlX CORE - X3 or X7 or a ctrlX OS installation version 2.6 and above.
  • InfluxDB and Telegraf apps set and running. Done with version 2.6.
  • Some RT data to trace.

Setup Telegraf app

First of all we have to check that the node we want to trace are Realtime Data like the data present in 

  • plc/app/Application/realtime_data/..
  • fieldbuses/ethercat/master/instances/ethercatmaster/realtime_data/..

If some calculation should be done before the upload, there is then the need to take the data in a Ethercat Synchronous task in the PLC app (or a self made RT app but PLC is definitely easier) and then store it in a realtime PLC data location. Below you can see my configuration, I removed all the comments to fit it in the page. Other than the standard configuration parameters we have the following 3 parameters to tune:

  • Sampling interval: setting this to 0 is activating the function.
  • lossless_rate_limit: setting to 1 i am uploading all the data, setting to 10 i upload a value any 10 values
  • queue_size: how big should the buffer i want to upload? 

Telegraf Lossless subscription

 

1
demo.txt
679B

Latest published/updated articles

Types
How-to
Categories
IOT
Attachments
Project