
Write a file to the controller

ko414du4
✭
in RobotStudio
Hello,
Does anyone know how to write a file and save it in the controller within your RAPID code? Is it possible at all? Perhaps in VSTA in C# or anything? Thank you for your help!
0
Comments
-
See:
http://developercenter.robotstudio.com/BlobProxy/manuals/RapidIFDTechRefManual/doc247.html
Example:
VAR string FileLocation:="HOME:YourFileName.csv";
VAR iodev File;
PROC WriteData()
Open FileLocation, File \Append;
Write File, NumToStr(YourNumber1,3)+", "\NoNewLine;
Write File, NumToStr(YourNumber2,3)+", "\NoNewLine;
Write File, NumToStr(YourNumber3,3)+", "\NoNewLine;
Write File, NumToStr(YourNumber4,3)+", "\NoNewLine;
Write File, NumToStr(YourNumber5,3);
Close File;
ENDPROC
1 -
soup said:
See:
http://developercenter.robotstudio.com/BlobProxy/manuals/RapidIFDTechRefManual/doc247.html
Example:
VAR string FileLocation:="HOME:YourFileName.csv";
VAR iodev File;
PROC WriteData()
Open FileLocation, File \Append;
Write File, NumToStr(YourNumber1,3)+", "\NoNewLine;
Write File, NumToStr(YourNumber2,3)+", "\NoNewLine;
Write File, NumToStr(YourNumber3,3)+", "\NoNewLine;
Write File, NumToStr(YourNumber4,3)+", "\NoNewLine;
Write File, NumToStr(YourNumber5,3);
Close File;
ENDPROC0
Categories
- All Categories
- 5.5K RobotStudio
- 398 UpFeed
- 19 Tutorials
- 13 RobotApps
- 299 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.8K Robot Controller
- 324 IRC5
- 63 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 813 RAPID Programming
- 5 AppStudio
- 3 RobotStudio AR Viewer
- 19 Wizard Easy Programming
- 105 Collaborative Robots
- 5 Job listings