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.

Set ProgramPointer to non existing routine problem

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