RobotStudio event

How to create a Target Point by jogging the robot

Hi,
    I am writing a Program in RAPID Code.The requirement of the program is that when the Program starts it ask's the user to jog the robot to any position in its working area.Then it has to store the point(robtarget).Like this it needs 3 different points in its working area.Can any one tell me how to do this.
BR
Ravi

Comments

  • Hi,

     just check in help for Stop - Stops program execution

     

    MoveL p1, v500, fine, tool1;

    TPWrite "Jog the robot to the position for pallet corner 1";

    Stop NoRegain;

    p1_read := CRobT(Tool:=tool1 WObj:=wobj0);

    MoveL p2, v500, z50, tool1;

     

    The program will stop

    the operator jog the robot and press play to save point and continue
  • Thanks for the reply.It worked....