Page 1 of 2
Cam Grinding coding
Posted: Fri May 30, 2014 12:47 am
by Voyager [Bot]
HIYA ART, Have you ever thought about a CAM grinding function. It would go over BIG in the modeling world. I have worked on one but cannot get though all the math needed. I have the math just can't get it all together in code.
(;-) TP
Re: Cam Grinding coding
Posted: Fri May 30, 2014 12:59 am
by ArtF
I do seem to remember having a discussion with you at one time on making
grinding code....something about it being complicated by the radius of the grinding wheel
or something?
Cant say I see myself doing one , at least until a ream of other plans are complete. I have to redo the CNC output section entirely so Im not oppossed, but Id have to say Ill wait till I see light in the tunnel before taking on more plans.
Art
Re: Cam Grinding coding
Posted: Fri May 30, 2014 5:55 am
by JustinO
What math do you have, and what math do you not have? Where are you having trouble? Worst case there'd be some numerical methods and/or simultaneous trig equations. Are your equations transcendental?
Sherline makes and sells a cam grinder that comes with software to generate G-code from CAD. It's expensive because it's a single purpose machine, but if you could keep it busy, it's a good value.
You've probably seen these Sherline videos:
Part one:
http://www.youtube.com/watch?v=OIWyGtXEgR4
Part two:
http://www.youtube.com/watch?v=PlZDg0rpIi8
Re: Cam Grinding coding
Posted: Fri May 30, 2014 10:40 am
by ArtF
Hi Justin:
I think the math is pretty straight forward, its a simple circle/circle intersection
algorithm really. Watching the video's brought it all back.

.
I'm not sure many would have a rig for doing it is more the reason it'd be
lower down my list. I wonder how many really desire cam grinding capability,
perhaps its my own inexperience in such matters. Any out there also interested
in cam grinding as an output?
Art
Re: Cam Grinding coding
Posted: Fri May 30, 2014 2:52 pm
by JustinO
Hi Art,
Once you work out the positions and tangent angles of the interpolating points along the perimeter of the cam (not fun), it gets really easy.
These positions would be defined in the cam's coordinate system.
Vector add a grinder radius length vector to each point's position vector, perpendicular to the cam's surface, and calculate the angle between this sum vector and the grinding wheel's axis. The two values plop right out of this vector sum triangle -- the angle for the rotary axis holding the cam, and the position of the linear axis moving the grinding wheel.
I should make a drawing...
Maybe you'd sell a few licenses to these cam grinding modellers.
--Justin.
Re: Cam Grinding coding
Posted: Fri May 30, 2014 3:03 pm
by ArtF
Justin:
Doesn't sound too bad to do.. but Id wonder how many have cam grinding ability in their
shops. I admit, itd be a cool thing to be able to do,but it may be a bit esoteric for rationalizing the
development time for such a thing....not that it takes much rationalization round here..loll
Art
Re: Cam Grinding coding
Posted: Fri May 30, 2014 3:10 pm
by JustinO
It's all about bragging rights.
Re: Cam Grinding coding
Posted: Fri May 30, 2014 3:44 pm
by ArtF
good point...
Re: Cam Grinding coding
Posted: Sat May 31, 2014 11:20 pm
by Voyager [Bot]
THERE are a LOT of old Profile Plate cam grinders out there that are waiting on a decent CNC interface.(;-)
It would not be Just for camshaft grinding but Cam lobes in general.
Long ago I had a version working from out of Sheetcam Les helped me with the post. We used the Function of a XY drawing of the Lobe then ran the TOOL around the profile THEN converted the X to A on post. THAT gave you the basic profile. You could STACK the lobes in layers to do an entire V8 camshaft
In mach3 I then used SUBs to drive the program and stepped into the lobe each loop. You could also do alternate lobes each loop to equalize the wear on the Wheel across multiple lobes. At one point it did just under a Million lines of code to do a V8 camshaft.
Then you also have Crankshaft grinding where you grind the journals. Basic offset grinding there.
THere ARE a lot of peole doing miniture engines these days (;-) .
A cam crank grinder can be maded very easily OR just convert your mill with an Aaxis.
Just a thought, (;-0 TP
Re: Cam Grinding coding
Posted: Sun Jun 01, 2014 12:10 am
by Voyager [Bot]
Here is a sample of one of the program to gind a 2 lob camshaft. NOTE the cross over between the 2 lobes. after each loop around the lobe it trnsfered over to the other lobe did one loop around it then return to the first lobe