RobotStudio event

Add 2 robtarget values

Does anyone knows how can i add two robtarget values?



Comments

  • Short answer:

     

    p10.trans := p20.trans + p30.trans;

     

    Long Answer:

    You can't add beyond the XYZ values (.trans), that involves the quaternions and configuration values.

    If you could be more specific as to what you want to accomplish, we can provide you specific answers. I can think of many ways and reasons to manipulate robtargate values. Are you using SearchL? Then you can use PDispSet or PDispOn. Or manipulate the actual .trans values with num data. Or you can simply use OffSet or RelTool to move the robot with numbers, with no math involved. There are so many more possibilities. What is your application? What do you want the program to figure out for you? What is the end result you desire?

     

    Best Regards,

     

    Shane
  • Hello. I am using vision systems. I want to take the current TCP and BASE make calculation and then add the correction to the robot and calculate the new TCP and BASE.
    How i am taking the BASE? For the TCP i am using the CRob(). Can you give some info about that? thanks
  • Hi

    You can use data type pose (not same as pos)

    With this data you can use command PoseMulti , PoseInv, PoseVect