![RobotStudio event](https://new.abb.com/images/librariesprovider89/default-album/robotstudio-webinar-arc-welding.jpg)
Why the function Start() int PC SDK 5.60 does not work?
![andyong](https://secure.gravatar.com/avatar/9a30815fb3fdfe2dc32312ecac76d5ca/?default=https%3A%2F%2Fus.v-cdn.net%2F5020483%2Fuploads%2Fdefaultavatar%2FK2266OAKOLNC.jpg&rating=g&size=200)
andyong
✭
hi,everyone!
this is my code: NetworkScanner ns = new NetworkScanner();
ns.Scan();
ControllerInfo[] ci = ns.GetControllers();
Controller controller = ControllerFactory.CreateFrom(ci[0]);
controller.Logon(UserInfo.DefaultUser);
Console.WriteLine(controller.SystemName);
Task[] ts = controller.Rapid.GetTasks();
using (Mastership m = Mastership.Request(controller.Rapid))
{
bool bb = controller.AuthenticationSystem.CheckDemandGrant(Grant.ExecuteRapid);
ts[0].LoadProgramFromFile(controller.FileSystem.RemoteDirectory + "/THIS/THIS.pgf",RapidLoadMode.Replace);
ts[0].Start();
Console.ReadKey();
}
these code works well if i reference them from the PC SDK 5.15. The virtual robot in RobotStudio will run the "THIS.pgf" when i run these code. But, when i reference them from PC SDK 5.60, the virtual controller will load "THIS.pgf", but virtual robot don't move. the value of "bb" is true during my test. ![image](http://)
the pictures is output when i test the code with PC SDK 5.60.
Can someone help me?
Thank you!
0
Answers
-
I am having this same issue and is described in another post.0
Categories
- All Categories
- 5.5K RobotStudio
- 397 UpFeed
- 18 Tutorials
- 13 RobotApps
- 299 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.8K Robot Controller
- 319 IRC5
- 63 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 804 RAPID Programming
- 4 AppStudio
- 3 RobotStudio AR Viewer
- 19 Wizard Easy Programming
- 105 Collaborative Robots
- 5 Job listings