2011/6/15 andy pugh <[email protected]>:
> On 15 June 2011 11:49, Dave <[email protected]> wrote:
>>>>A better solution might be a custom kinematics module.
>>
>> That sounds interesting!
>
> Let me have a fiddle over the next few days, it might not be all that
> difficult to get something basic, then it is just a case of doing the
> hard sums.

Well, I think that the code can be derived in following way:
1) draw the required shape;
2) offset by radius of grinding wheel;
3) that would produce the shape in XY coordinates;
4) now these XY coordinates have to be transformed to polar
coordinates, where angle is A and radius is X, Z or whichever
coordinate that moves the grinding wheel;

That transformation can be done in following way:
1) origin of XY should be in the point, which corresponds to
centerline (axis of rotation) of CAMshaft;
2) split the code in very small linear moves;
3) sqrt of X^2 + Y^2 is the position of grinding wheel;
4) atan2(Y,X) is the position of angular axis;

The code will not be very optimized, but at least it should work.
When placed in a subroutine, repeating the moves, each time a
little-bit closer to center, should make the final code pretty usable.

Viesturs

------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to