Load / UnLoad
Options
S_Smith
✭
in RobotStudio
Hello All,
Is it possible to load and unload a .Log or a .txt?
0
Comments
-
"Load" and "Unload" are for modules, but "ReadStr" can read and "Write" can write text file data.
1 -
I am able to read and write to the .log or .txt, but I want to be able to save it to a connected network automatically once a week.
I am having to do it manually.
thank you.
0 -
Look at the help on the CopyFile instruction, it will take a file from one directory and copy it to another. You probably want to time and date stamp it or something.
For regular triggering maybe you could occasionally check the time and date (CTime and CDate functions) and compare that to the last time you moved the file.
Below is some code which might help.sTime:=StrPart(CTime(),1,2)+StrPart(CTime(),4,2);sLogFileName:="LogFile_Saved_"+CDate()+"_"+sTime+".txt";!CopyFile "HOME/LogFile.txt","E:/"+sLogFileName;0 -
1. Check that you have the FTP option on your controller
2. Add your FTP server to the controller's configuration under the Communication tab
3. Trigger write/copy/read based on day of the week
1
Categories
- All Categories
- 5.4K RobotStudio
- 385 UpFeed
- 15 Tutorials
- 12 RobotApps
- 291 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 247 ScreenMaker
- 2.7K Robot Controller
- 285 IRC5
- 47 OmniCore
- 6 RCS (Realistic Controller Simulation)
- 3 RobotStudio AR Viewer
- 748 RAPID Programming
- 15 Wizard Easy Programming
- 110 Collaborative Robots
- 3 Job listings