Hi, so I’m doing a project at school, and I want to change the tool data (only the X-value) by a value that is the difference between two robot targets.
One of the targets is fixed, the other one will change, depending on the length of my tool. I want to use SearchL to get the second/variable target. I want to calculate the difference in X fore the two targets, and adjust the tooldata by this walue.
Anybody who got some pointers or good tips for a noob?
the easy way to calculate the distance between two points is with the distance function. Distance is used to calculate the distance between two points in the space, in all three directions!
second option is to calculate only the X differentiation.
! Example first option
Var robtaget pfixpos := […] ;
Var robtarget pfoundpos :=[…];