Good Day.
I have inserted an 8gb Flash Drive (FAT32 format) inside the controller on the Main Computer Unit.
I can see the USB when accessing the File Explorer on the TP and via RS in File Transfer.
I want to move all my Saved Modules and Reporting files to this flashdrive and do all the saving and loading of this items to the Flashdrive instead of the Controller HDD to save up some space on the HDD.
Question: How do I connect with the USB via Rapid Code with instructions?
I have tried the following:
LOCAL VAR dir Directory;
LOCAL VAR string Filename;
LOCAL VAR iodev PartFile;
PROC Main()
CloseDir Directory;
Close PartFile;
!open the directory for reading
OpenDir Directory,":/bd1:1/";
! WHILE ReadDir(Directory,Filename) DO
Open ":/bd1:1/",PartFile\Write;
Write PartFile,"YES";
! ENDWHILE
!Close directory
Close PartFile;
CloseDir Directory;
ENDPROC
I get only errors when running this code.
Error 40529 - File Access Error
Error 40228 - Execution Error
I am running RW6.09 on the system.
Regards


