Why the function Start() int PC SDK 5.60 does not work?
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.
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
- 395 UpFeed
- 18 Tutorials
- 13 RobotApps
- 297 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 249 ScreenMaker
- 2.7K Robot Controller
- 310 IRC5
- 59 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 785 RAPID Programming
- AppStudio
- 3 RobotStudio AR Viewer
- 18 Wizard Easy Programming
- 105 Collaborative Robots
- 4 Job listings