Hi,
I am trying to use RAB 5.10 to load program/module files, located on the robot controller memory. The program and module I am trying to access is located in “/hd0a/SystemName/Test”.
I have created a controller object, logged into the controller as the default user and taken mastership:
###############################################
controller = ControllerFactory.CreateFrom(controllerInfo);
tasks = controller.Rapid.GetTasks();
using (Mastership m = Mastership.Request(controller.Rapid))
{
string remoteDir = controller.FileSystem.RemoteDirectory + “/../Test/”;
string fileP = remoteDir + “Test.pgf”;
string fileM = remoteDir + “MainModule.mod”;
tasks[0].LoadProgramFromFile(fileP, RapidLoadMode.Replace);
tasks[0].LoadModuleFromFile(fileM, RapidLoadMode.Add);
MessageBox.Show(fileP + “is active program”);
}
##############################################
controller.FileSystem.RemoteDirectory returns the
string, “/hd0a/SystemName/Home”
The string fileP returns: “/hd0a/SystemName/Home/../Test/Test.pgf”
The string fileM returns: “/hd0a/SystemName/Home/../Test/MainModule.mod”
I get a “General file hadling error”, and there is no program loaded onto the controller. The files do exist on the controller memory.
Any ideas what the problem is??
Thanks in advance,
Neil