Hi AGME,
I think writing each PLC cycle in a csv file, which is on the flash, is not a good idea, as this will destroy your flash quickly.
So you should maybe collect your data in the plc, an array or so, and just write it from time to time.
You can also open the file in a different mode which allows you to append data to an existing file.
... View more