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.
Set ProgramPointer to non existing routine problem
chaos
✭
Dear All,
I tested the new release RW 5.11.02 with my HMIs and the following problem occurs.
I set the program pointer to a procedure which don't exist anymore with the following code.
try
{
aTask = AController.Rapid.GetTask("T_ROB1");
aTask.SetProgramPointer("Clean_Tool", "Teach_Clean_Tool");
Rapid RapidHMI = AController.Rapid;
RapidHMI.Start(RegainMode.Clear, ExecutionMode.Continuous,
ExecutionCycle.Once);
}
catch
(System.Exception ex)
{
ABB.Robotics.Diagnostics.Debug.WriteLine(ex.Message);
System.Diagnostics.Debug.WriteLine(ex.Message);
GTPUMessageBox.Show(this.Parent, null, "Couldn't set PP to the needed
routine", System.Windows.Forms.MessageBoxIcon.Hand,
System.Windows.Forms.MessageBoxButtons.OK);
}
Till the last revision I got an error message through the catch method. With the actual
revision the robot start the program from the current program pointer position and no error occurs, e.g. PP is set to main and I try to call the Teach_Clean_Tool procedure and this procedure doesn't exist - the robot continues with the main routine.
Do somebody knows about this problem respectively how I can handle it?
Thank you
BR
I tested the new release RW 5.11.02 with my HMIs and the following problem occurs.
I set the program pointer to a procedure which don't exist anymore with the following code.
try
{
aTask = AController.Rapid.GetTask("T_ROB1");
aTask.SetProgramPointer("Clean_Tool", "Teach_Clean_Tool");
Rapid RapidHMI = AController.Rapid;
RapidHMI.Start(RegainMode.Clear, ExecutionMode.Continuous,
ExecutionCycle.Once);
}
catch
(System.Exception ex)
{
ABB.Robotics.Diagnostics.Debug.WriteLine(ex.Message);
System.Diagnostics.Debug.WriteLine(ex.Message);
GTPUMessageBox.Show(this.Parent, null, "Couldn't set PP to the needed
routine", System.Windows.Forms.MessageBoxIcon.Hand,
System.Windows.Forms.MessageBoxButtons.OK);
}
Till the last revision I got an error message through the catch method. With the actual
revision the robot start the program from the current program pointer position and no error occurs, e.g. PP is set to main and I try to call the Teach_Clean_Tool procedure and this procedure doesn't exist - the robot continues with the main routine.
Do somebody knows about this problem respectively how I can handle it?
Thank you
BR
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