Datalogging to .csv file
Hello,
How do I generate a daily report with 1 minute data logged in to a .csv file in PLCNext engineer? I am using FB_Log2CSV function block that was provided by Phoenix Contact engineer that I was working with. This block is creating the .csv file with headers however data is not getting recorded. I would like to know if there is an alternative method to record the data in the .csv file.
Comments
Hi!
There are at least two ways to write data to the sd card of plc. Using of embedded file access blocks
And using several libraries
Simple logger https://www.plcnextstore.com/world/app/222
DataLogger https://www.plcnextstore.com/world/app/348
PLCNextBase https://www.plcnextstore.com/world/app/1294 will allow to write data via linux cli.
Please, find sample of FB that write text data to the file on storage, based on file write functions of PLCNengineer IDE without external libraries. Formatting of data have to be relayed on some additional FB/FC.
BR