Using the CopyFile command to copy from the controller temp to a more permanent/accessible location.
CopyFile disktemp+“file.txt”, diskhome+“file.txt”;
This code works, but I would like to copy the file to the USB drive instead.
When I change the code to reflect that, I get an error that it is unable to access the file on the USB drive. I’ve had the same issue in trying to create the file on the USB.
CopyFile disktemp+“file.txt”, usbdisk1+“file.txt”;
^^^ This SHOULD work, but doesn’t. I get file access errors from the robot.
I’ve tried two different USB drives now, and neither of them works with the robot. I am able to manually load/save modules and manually copy/move files within FlexPendant explorer, but the RAPID code does not work.