How Can We Help?
Historical data collector by example
The following example illustrates the application of “Historical Data Collector”
- You can log data:
- every x seconds
- every precise time
- on a trigger
- You can also
-
- Reset all data
- backup data on USB disk (Formatted FAT32) plugged on the HMI
-
Download this simple example (HMI project) : TestHistoDataV3

You will find the .csv file on the USB disk after the backup:

About the .dat file: You can also drop here the .dat historical file “histdata_20200203172443.dat” (from the HMI USB key) to view its contents or also convert it here in .csv file.

Note about where you store your historical data
See in HMI parameters settings > Storage locations..
- If you select [Local (FLASH)]:
- Trigger bit LB60128 to generate a CSV file, which the HMI will save to the USB drive.
- If you select [USB flash disk]:
- Set up a button linked to bit LB60124. This bit signals to the HMI that the USB drive is about to be removed. It’s important to trigger it before unplugging the drive: without this step, a USB power loss during removal could result in file corruption or data loss.