Rapid code execution
Options
newform
✭
Dear All,
I am developing a windows application using PC SDK and VS2005. I want to remotely start a Rapid program. What I did is
1. get controller handler and check its operation mode
2. get mastership
3. get task
4. start the task by invoking, say "StartResult result = Task[0].Start()"
The return value of this function is "StartResult.error". There is no any clue about what is wrong.
Can anybody provide any hint? Many thanks
I am developing a windows application using PC SDK and VS2005. I want to remotely start a Rapid program. What I did is
1. get controller handler and check its operation mode
2. get mastership
3. get task
4. start the task by invoking, say "StartResult result = Task[0].Start()"
The return value of this function is "StartResult.error". There is no any clue about what is wrong.
Can anybody provide any hint? Many thanks
0
Comments
-
You would need to be in auto, have a program pointer, have the motors on before this would work. You might consider using System Inputs and outputs, like a PLC would use, to try to implement your program control, it might be simpler and more straight-forward than doing it all programmatically.
Russell Drown0 -
Hello,
Thank very much for your reply.
I just added one more function Task.ResetProgramPointer(). It works.
Thanks a lot for your information.
0
Categories
- All Categories
- 5.4K RobotStudio
- 384 UpFeed
- 14 Tutorials
- 12 RobotApps
- 291 PowerPacs
- 406 RobotStudio S4
- 1.8K Developer Tools
- 247 ScreenMaker
- 2.7K Robot Controller
- 279 IRC5
- 46 OmniCore
- 6 RCS (Realistic Controller Simulation)
- 3 RobotStudio AR Viewer
- 736 RAPID Programming
- 15 Wizard Easy Programming
- 105 Collaborative Robots
- 3 Job listings