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!
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!
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
Thank you so much for your help! ![]()