Dear Community User! We have started the migration process.
This community is now in READ ONLY mode.
Read more: Important information on the platform change.

MauroRiboniMX_0-1708521958815.png

IIoT - Use Telegraf app to sample Realtime Data automatically

MauroRiboniMX
Contributor
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 appOversample 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 subscriptionTelegraf Lossless subscription

 

MauroRiboniMX
MauroRiboniMX
Hello, I am Mauro a ctrlX DEVELOPR at night and a̶n̶ A̶p̶p̶l̶i̶c̶a̶t̶i̶o̶n̶ E̶n̶g̶i̶n̶e̶e̶r̶ Product Manager during the day 😎 . Ask me anything about ctrlX AUTOMATION but my best topics are IoT, AI, SDK and Communication!
Must Read
Icon--AD-black-48x48Icon--address-consumer-data-black-48x48Icon--appointment-black-48x48Icon--back-left-black-48x48Icon--calendar-black-48x48Icon--center-alignedIcon--Checkbox-checkIcon--clock-black-48x48Icon--close-black-48x48Icon--compare-black-48x48Icon--confirmation-black-48x48Icon--dealer-details-black-48x48Icon--delete-black-48x48Icon--delivery-black-48x48Icon--down-black-48x48Icon--download-black-48x48Ic-OverlayAlertIcon--externallink-black-48x48Icon-Filledforward-right_adjustedIcon--grid-view-black-48x48IC_gd_Check-Circle170821_Icons_Community170823_Bosch_Icons170823_Bosch_Icons170821_Icons_CommunityIC-logout170821_Icons_Community170825_Bosch_Icons170821_Icons_CommunityIC-shopping-cart2170821_Icons_CommunityIC-upIC_UserIcon--imageIcon--info-i-black-48x48Icon--left-alignedIcon--Less-minimize-black-48x48Icon-FilledIcon--List-Check-grennIcon--List-Check-blackIcon--List-Cross-blackIcon--list-view-mobile-black-48x48Icon--list-view-black-48x48Icon--More-Maximize-black-48x48Icon--my-product-black-48x48Icon--newsletter-black-48x48Icon--payment-black-48x48Icon--print-black-48x48Icon--promotion-black-48x48Icon--registration-black-48x48Icon--Reset-black-48x48Icon--right-alignedshare-circle1Icon--share-black-48x48Icon--shopping-bag-black-48x48Icon-shopping-cartIcon--start-play-black-48x48Icon--store-locator-black-48x48Ic-OverlayAlertIcon--summary-black-48x48tumblrIcon-FilledvineIc-OverlayAlertwhishlist