7/5/2022 8:43 AM | |
Joined: 4/3/2020 Last visit: 7/27/2022 Posts: 3 Rating: (0) |
At this moment I'm struggling with the delete button. How can I delete the log files directly from the SD card? Downloading works fine from the command line:
This plc does a lot of logging, and manually downloading and deleting is no option, it results in a lot of hours work a day, also removing the SD card using a pc every day in order to move the files to a local directory: the plc has to be turned off for a few minutes and this is not acceptable to the production departments. I'm working on an automated process in order to download all logs and keeping the SD card clean, with wget or curl, but I can't get this delete button working. Is there someone who already has managed to do this? Thanks in advance. ------------------------------------------------------------------------------------------ |
Last edited by: Jen_Moderator at: 07/26/2022 11:17:12New subject after splitting |
|
7/7/2022 8:27 AM | |
Joined: 4/3/2020 Last visit: 7/27/2022 Posts: 3 Rating: (0) |
Yes, the files are generated in one action, when the memory is full. These are user files written with the FileWriteC function in TIA. Deleting from the web interface works just fine. Only via Curl or Wget it doesn't. At this moment I can't upgrade the cpu from version 2.8.2 to 2.9.4 because the download failed, and now this download is blocked in my account. My colleague also tried to download it, but he has no permission to download yet. So this part will have to wait until he can perform this download. This is the link to the firmware. |
8/3/2022 3:49 PM | |
Joined: 1/23/2020 Last visit: 10/31/2023 Posts: 31 Rating: (7) |
Hi, I would suggest a cURL command (https://www.curl.se). As I read from your post the file you want to delete is in UserFiles. (Notice there is a difference to other folders) After login via wget (if necessary)
cURL command:
After that the file should be deleted from SD Card. |
Last edited by: Brachiosaurus at: 08/03/2022 16:00:39 |
|
Follow us on