RobotStudio event

SetProgramPointer at specified row not working

Options
Hi, can you tell me how to use the  SetProgramPointer sub to send the PP to a specified row of a routine. Here is my VB.Net code:

aTask.SetProgramPointer(ppLastPPPosition.Module, ppLastPPPosition.Routine)
System.Threading.Thread.CurrentThread.Sleep(1000)
'1000ms = 1sec
aTask.SetProgramPointer(ppLastPPPosition.Module, ppLastPPPosition.Start.Row)

I'm able to get the PP in the routine but the PP is not going to the specified row (third instruction above).
What should I do?
Thanks
Jerome

Comments

  • Jerome
    Options
    Can someone at ABB look at this problem Please!
    Thanks,

    Jerome
  • carlosmtz2000
    Options

    Are you using a row number relative to the Module?

    Carlos Martinez
    ABB
  • Jerome
    Options
    Yes I am.   I'm moving the program pointer in the routine successfully but when I try to Set it to a specified row it doesn't work. ppLastPPPosition.Start.Row is a ProgramPointer data type that return a num with the row. 
    I'm using RAB 5.12 with a RW5.12_02.01.2043 in the IRC5.

    Jerome
  • carlosmtz2000
    Options
    Can you create a simple test (C# + RAPID) ? This will help to analyze what is now working properly.
     

    Thanks
    Carlos Martinez
    ABB