10-07-2005 01:36 AM
10-07-2005 07:02 AM
10-09-2005 11:16 PM
Hi,
I suggest the following formula that I worked out for you just now,
Calculate the centre angle of the arc, i.e. the angle subtended by the arc to the centre of the circle by the formula below,
theta = 2*sine inverse (L / 2R).
Where L is the distance between the two points (x1,y1) and (x2,y2) and R is the radius of the arc.
Now since you have theta, now you can find the points in the arc by increasing theta from zero till the value you just obtained from the above forumla and simultanously multiplying all the theta values with the radius in a while loop. This means that you have obtained all the coordinates of the points in the circumferance of the arc by using the simple formula, arc length = R * theta. Now that you have all the points of the circumferance, you can do an interpolated to all the points so obtained. You will have to select contoured move as Jochen suggested rightly. Use the Wait for move complete to make the controller finish current move before jumping to the next commanded position. Remember to use a delay of at least 100ms in the while loop. I'm sure, by this you will obtain a complete arc with good accuracy.
Regards,
Giridhar Rajan