and get an error : The RAPID program name is not set
Is there a way to set RAPID program name ?
Dose setting a program pointer is not sufficient ?
Mastership master = null;
string filePath = GetABBRobot().FileSystem.RemoteDirectory;
bool result = false;
try
{
Task controllerTask = GetABBRobot().Rapid.GetTask(“T_ROB1”);
using (master = Mastership.Request(GetABBRobot().Rapid))
{
controllerTask.SetProgramPointer(“OPTITILE_PATH”, procedureName);
controllerTask.SaveProgramToFile(filePath);
}
}
I think it’s due to that there is no name () of the rapid program. If you connect to the robot using the online tab of RS and “save program as…” then it will set the program name. But in my opinion saveProgramToFile is basically the same but at least it’s worth a try.
Thanks Per for the replay.
I am not familar with connect to the robot using the online tab of RS
do you have an example for connecting with it ?
Is there simple way to write and read a program from robot ?
regards,
Avi Cohen
Basically what you have to do when connecting to a real controller is
- plug in the network cable (front of the robot controller). But if you allready have the controller connect thru the factory network port(inside the controller) then instead of using one click connect described bellow you select add controller and select it in the list.
- Select Online tab in RS
- Click on connect to controller (one click connect)
- Request write access (if robot in manual mode you have to confirm on the flexpendant)
- Right click on T_ROB1 (or the task you want to save) and select save program as..
- Give it a name and press save.
- Release write access
That’s it
Thanks per
I try to do it from my application using PC SDK
What i fide out that saving module work ok
So i uesed it
Avi