Forum Migration Notice
Update (2026-01-21): The user forums are now in read-only mode pending the data migration.
Update (2026-01-12): The user forums will be put into read-only mode on the 21st of January, 00:00 CET, to prepare for the data migration.
We're transitioning to a more modern community platform by beginning of next year. Learn about the upcoming changes and what to expect.
Update (2026-01-12): The user forums will be put into read-only mode on the 21st of January, 00:00 CET, to prepare for the data migration.
We're transitioning to a more modern community platform by beginning of next year. Learn about the upcoming changes and what to expect.
Rapid code execution
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.7K RobotStudio
- 402 UpFeed
- 21 Tutorials
- 16 RobotApps
- 307 PowerPacs
- 407 RobotStudio S4
- 1.8K Developer Tools
- 251 ScreenMaker
- 2.9K Robot Controller
- 368 IRC5
- 92 OmniCore
- 8 RCS (Realistic Controller Simulation)
- 859 RAPID Programming
- 43 AppStudio
- 4 RobotStudio AR Viewer
- 19 Wizard Easy Programming
- 111 Collaborative Robots
- 5 Job listings