PBCL_FileCsvWrite_1 writes only one time

the PBCL_FileCsvWrite_1 can only write Datas one time in a CSV-File. When i make a warm-restart it can write once - new warm-restart and it works for one time, too. If i delete the csv File via WinSCP the Programm can not create a new one with the same name or write in it. can anyone explain this ?


image.png




Hi Mr. Ecker, I couldn’t reproduce this issue.

The xExecute input requires a trigger (rising edge) to execute the writing process. With every new trigger the function block writes the data into the *.csv file.

Tested with:
PnE 2020.6
FW 2020.6
PLCnextBase 1.3.1

Is PBCL_FileCsvWrite() a library function ? or user code ?

I am trying to work out how to write CSV files (of various data types - not just BOOL)
and I am under the impression that there is no library support for that

In the above code snippet, PBCL_FileCsvWrite_11 is an instance of the PBCL_FilesCsvWrite function block from the PLCnextBase library, which is available in the PLCnext Store.

To get support for any apps from the store (including libraries like PLCnextBase), you can use the “Contact Developer” button on the app page in the PLCnext Store.

How can we use PBCL_FileCsvWrite_1 to write data in multiple rows to a CSV file?