I had many files on my SD card, more than 6000 thousand. Through visualization or through filezilla I was unable to access the directory. I had to take out the card and read it through a card reader to understand what files were there. Are there any restrictions on viewing files? Maybe somehow you need to limit the program recording so that a similar situation does not happen again?
Which controller do you use? In linux controllers like PFC100/200/TP600/EDGE/CC100 there is /etc/pure-ftpd.conf, but there are no limits defined by default.
but.. request ‘full directory listing’ allocate memory for file names for listing, so its good to limit ~1000 files per folder, the best is to create logs in hierarchy /year/month/log_date
When creating files you can use WagoAppString.Format1(‘/media/sd/Logs/%{%Y/%M/Log_%D}t.csv’,ADR(typWagoTimeComponents)) function to name new files.
So you can create new files based on date:
PROGRAM PLC_PRG
VAR
FileTest : WagoSysFileDir.FbSysFile;
typWagoTimeComponents : WagoAppTime.typWagoTimeComponents;
eAccMode: WagoSysFileDir.eFileAccessMode := WagoSysFileDir.eFileAccessMode.FAM_Append;
eSyncMode: WagoSysFileDir.eFileSyncMode;
xOpen: BOOL;
END_VAR
IF xOpen THEN
xOpen := FALSE;
typWagoTimeComponents := FuGetLocalTimeComponents();
FileTest.Open(sName:= WagoAppString.Format1('/media/sd/Logs/%{%Y/%M/Log_%D_%h-%m}t.csv',ADR(typWagoTimeComponents)), eAccMode:= eAccMode, eSyncMode:= eSyncMode, xExclusive:= FALSE);
FileTest.Write(pTxBuffer:= ADR('test'),4);
FileTest.Close();
END_IF