Forum Migration Notice
We're transitioning to a more modern community platform by the end of this year. Learn about the upcoming changes and what to expect.

how to bypass one instrcution in program!

How to temprary bypass one line in robot program by using teachpandent?

For example:

MoveJ P1,Vmax,fine,tool1;

MoveJ P2,Vmax,fine,tool1;

I need temprary jump first line and run second line,when i need i can put  line 1 back to program so i don't want lose P1 point.

I trid to put "!" on front of the line change the line to comment,but I couldn't.

If anyone know how to do it pls let me know<

Thanks a lot!!!!!

 

 

Comments

  • Hi
    Why don't you just use a IF instruction like bellow
    where you control if P1 should be executed with a bool bJumpFirstLine

    IF bJumpFirstLine THEN
     MoveJ P2,Vmax,fine,tool1;
    ELSE
     MoveJ P1,Vmax,fine,tool1;
     MoveJ P2,Vmax,fine,tool1;
    ENDIF
     

    Per Svensson
    Robotics and Vision Specialist
    Consat Engineering
  • Hi Jefftoron

    Even easier is

     IF FALSE MoveJ P1, vmax, fine, tool1;

    Then you just need to change FALSE into TRUE to re-enable the line.

    Bye
    Claudio

  • thx a lot!