I’m Choi. Nice to See you.
I am using the X20CP0484 CPU. Currently, I am using the DirInfo
function to check the number of log data files created in the PLC. When the number exceeds a certain limit, I use the DirRead
function to retrieve the filenames and then use the FileDelete
function to delete the corresponding files. However, sometimes the DirRead
function returns the most recent file instead of the oldest file. Is there any way to ensure that the oldest file is returned?
Here is Some Code
