log file creation question
Options
Hi all
I would like to use some log files for controlling manufacturing aspects of the robot (such as at what time a cylce started, how many parts it produced and so on).
I've been checking the help and I know how to open a file, write and close it.
My question is how to do it so that those log files don't occupy too much space in the robot controller. For it my idea was that the system should delete files older than 15 days. I used the date for creating the log file (one file per day). How could I do it? I have not found any instruction on how to know if a file with a specied name exists, or to check its date or something like that.
Thank you in advance
0
Comments
-
I used the date for creating the log file
So the file-name contains a date? In that case you can recursively go through the directories and compare the names of files with a given date.
If needed I can create an example for you...
0
Categories
- All Categories
- 5.4K RobotStudio
- 384 UpFeed
- 14 Tutorials
- 12 RobotApps
- 291 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 247 ScreenMaker
- 2.7K Robot Controller
- 279 IRC5
- 46 OmniCore
- 6 RCS (Realistic Controller Simulation)
- 3 RobotStudio AR Viewer
- 734 RAPID Programming
- 15 Wizard Easy Programming
- 105 Collaborative Robots
- 3 Job listings