start() failed after LoadModuleFromFile
Options

funwey
✭
Hi;
I use the following to load a module from file :
Task aTask = this.controller.Rapid.GetTask("T_ROB1");
aTask.LoadModuleFromFile(sDirR + "/module.mod",RapidLoadMode.Replace );
System.Threading.Thread.Sleep(3000);
StartResult sRes = this.controller.Rapid.Start();
I checked that the module has been successfully loaded into the RobotStudio, and that it could be executed with pressing the "Start" button on the RAPID page. However the sRes returns error and Start() failed. I have also tried aTask.Start() and it is the same. Anyone can help ?
Rgds
Wey
I use the following to load a module from file :
Task aTask = this.controller.Rapid.GetTask("T_ROB1");
aTask.LoadModuleFromFile(sDirR + "/module.mod",RapidLoadMode.Replace );
System.Threading.Thread.Sleep(3000);
StartResult sRes = this.controller.Rapid.Start();
I checked that the module has been successfully loaded into the RobotStudio, and that it could be executed with pressing the "Start" button on the RAPID page. However the sRes returns error and Start() failed. I have also tried aTask.Start() and it is the same. Anyone can help ?
Rgds
Wey
FW
0
Categories
- All Categories
- 5.6K RobotStudio
- 400 UpFeed
- 20 Tutorials
- 14 RobotApps
- 301 PowerPacs
- 406 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.8K Robot Controller
- 345 IRC5
- 73 OmniCore
- 8 RCS (Realistic Controller Simulation)
- 844 RAPID Programming
- 20 AppStudio
- 4 RobotStudio AR Viewer
- 19 Wizard Easy Programming
- 108 Collaborative Robots
- 5 Job listings