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
- 396 UpFeed
- 18 Tutorials
- 13 RobotApps
- 297 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 249 ScreenMaker
- 2.7K Robot Controller
- 310 IRC5
- 59 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 785 RAPID Programming
- AppStudio
- 3 RobotStudio AR Viewer
- 18 Wizard Easy Programming
- 105 Collaborative Robots
- 4 Job listings