Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: wvancura on December 01, 2010, 03:43:05 PM

Title: tool force compensation
Post by: wvancura on December 01, 2010, 03:43:05 PM
I get a different sized hole depending on the direction I cut it. Most of the problem lies in a machine designed for wood, which is being used to cut aluminum stock.

In every machine there is some slop, the machine will bend as the tool is forced through the material being cut.

Is there a way to compensate the path for the forces on the tool?

These forces will be 90 deg from the direction of the tool path. I am aware that that the actual force cannot easily be measured, but a nominal value could be assumed for a given material, rotary speed, tool feed rate, and depth of cut. In my case, these items are relatively constant, and one number, for each axis, may do the trick.  It may even be possible to pick up some of these values from the g-code settings.

I haven't ruled out backlash, but I have done a lot to minimize it.

Thanks, Bill

Title: Re: tool force compensation
Post by: ostie01 on December 01, 2010, 03:54:19 PM
Give a try to Gwizard program

http://www.cnccookbook.com/CCGWizard.html

I think there's a function to calculate tool deflection.


Jeff
Title: Re: tool force compensation
Post by: Chestermarine on December 03, 2010, 03:49:08 PM
Trying to compensate for tool deflection is a very large variable, influenced by;
(1) Weight/rigidity/design of the machine itself.
(2) Type of cutting tool, roughing mill cutter/finish mill cutter type.
(3) Sharpness of the cutting tool.
(4) Cutter design, cutters for aluminum have more chip clearance than general cutters.
(5) Type and alloy being cut; aluminum, mild steel, tool steel, high-carbon, stainless etc.
(6) Material hardness.
(7) Speed the cutter is being pushed through the work.
(8) Depth of cut.
(9) Direction of cut; climb cutting v.s. conventional cutting.
(10) Type of coolant, if any?
(11) Solid carbide tool v.s. High speed steel cutter.
(12) Length v.s. diameter of cutter.
(13) Spindle precision.
(14) Tool holder/collett quality.

and, probably a few more I have not thought of here.

Climb cutting gives a better finish, but must be used carefully, as machne backlash may allow the table to let the tool dig in unexpectedly.
For consistent production type machining, use a roughing cutter leaving the part oversize (approx .010/.015") and finish off with a finish style cutter
using a climb cut. This will permit the lightest possible tool load for the finish dimension, and the variation of the roughing deflection will not enter into
finish dimension equation.

Also, the finish cutter will see less material to (less cubic inches of material to plow through) to dull it's new sharpness.
If the finish cutter is a high quality carbide, it will be even better, as carbide will retain it's edge longer than H.S.S. 

All tools deflect to some degree or another. It depends on how close and how smooth your finished part has to be. It is all a trade-off, and how much
time and money can be expended per part.

Regards,

John
Title: Re: tool force compensation
Post by: Overloaded on December 03, 2010, 05:03:12 PM
to add to Johns list,
a flexible machine could be the "loosest" at or near the mid point of each axis's travel, getting more rigid towards each end of its travel.
This would make it infinitely variable and quite difficult to compensate for ..... in this head anyway. :P
Just a thought,
Russ
 :)
Title: Re: tool force compensation
Post by: RICH on December 03, 2010, 05:33:20 PM
I would suggest you put something under what your trying to drill to keep the piece from bending.....or maybe get a new drill bit.
Before you injure yourself.
RICH
Title: Re: tool force compensation
Post by: wvancura on December 03, 2010, 05:37:58 PM
John,
I was aware of about half of the items you mentioned and understand how the others have an impact on the tool path. And you are right, a finish pass and sharp tools do make a big difference.

I was wondering if there is a setting or a macro that I can use to generate a compensation that will get me closer to the optimal path. If I could normalize out the larger errors, I would be in great shape. I suspect that only one or two of the variables are causing most of the error, and I would like to minimize them.

For instance, if I could offset the tool path in the y direction when traveling in the x direction, the amount based on speed, I could make the flexing in the y direction appear to be stiffer that it is. A parameter in the g-code could enable and scale the effect depending on the material I use.

I am in the process of improving the structural integrity of the machine, but there are a few original design flaws that will be difficult to overcome without a total reinvestment.  

Unfortunately compensating for applied forces would entail an algorithm that runs real-time.
Title: Re: tool force compensation
Post by: Ya-Nvr-No on December 03, 2010, 08:11:06 PM
Now, I would think using a formula would work for that. ;)

Thou it still comes down to what John, Rush & Rich refer too.

I'd have to say... don't fudge, fix!
Title: Re: tool force compensation
Post by: Ya-Nvr-No on December 03, 2010, 09:23:51 PM
This might work for you, or a variation of such depending on the offset you need.

Function Cfg's
Formula
don't forget to enable formulas

f(x)=x-(y-y*.99)
f(y)=y+(x-x*1)

Looks like it works but I did not do a full test to prove it out.
Title: Re: tool force compensation
Post by: wvancura on December 03, 2010, 10:49:36 PM
By Golly that just might work. Simple and elegant. I will read up on implementing that.

Can I define the multiplier as a user variable and set it from the G-code at the start of a project?

Thanks,
Bill
Title: Re: tool force compensation
Post by: Ya-Nvr-No on December 04, 2010, 06:36:59 AM
This still does not make sense to me how you get defection in X or Y for a hole your drilling in Z if you have good drilling practices.

But whatever, I was always use a center drills first to get true position, then start will smaller drills and work up to the hole size I need. Using a pecking cycle helps also.

As far as a multiplier, you could change the multiplier to a variable like a b c (which is an axis your not using) and just change the value of that. So you would have f(x)=x-(y-y*c)
Now, just put .99 in the C axis DRO or enter in your code a G0C0.99.(don't forget to change back to G1 if need be, or you learn some new lessons) Later in the program I guess you could change it to some other value like C0.88. It's not a good practice and quite obscure & convoluted, but have fun and be safe.
Title: Re: tool force compensation
Post by: RICH on December 04, 2010, 07:43:23 AM
Quote
Is there a way to compensate the path for the forces on the tool?

Yes and here are some examples:
For  drilling .010 holes  a peck drilling cycle was used and had a dwell time at just below the surface to allow the drill to center itself and then peck in small steps
along with the appropriate feedrate as to not bend or allow the drill to deflect.

Drilliing thru a hardened piece of stock RC 55-60 a 1/2" carbide spade drill was used with a slow but constant feedrate.

Drilling a 1 1/4" hole in steel plate a center drill hole was first used, and then progresssively the drill size was increased.

My point is simple and echo other replies. The work piece must be held appropriately, correct tool for the application, and appropriate feedate rates ( manual or computer controlled),
and practical judgement applied to the task.

You will never drill a sized hole when the material is deflecting and trying to compensate for that is just a waste of time.
Your going to get hurt or possible create an uncontrolled situation because of ignorance on your part.
Sorry, care about your safety  and not your personal feellings. ;)

That said,
You can calculate the forces for metal but to my knowledge there is nothing available for wood. All the calculations are subjective and used along with
engineering judgement.

RICH
Title: Re: tool force compensation
Post by: wvancura on December 04, 2010, 08:15:10 PM
Hi all,
I use my CNC machine for mostly cutting relatively thin (0.050" to 0.100") aluminum face-plates for electronic equipment. My tool of choice is 0.093". I rarely use the CNC for straight drilling. However now and then I cut thicker 6061 aluminum. Attached is a picture of a bearing block I just cut that will be used to replace the Delrin blocks of the same shape on this machine. One is 0.625" thick and the other is 0.75" thick. I am hoping that these will add a modicum stiffness to the gantry system. I find that the plastic blocks keeps relaxing and needs frequent adjustment. The CNC machine has trouble cutting a piece of material this thick without some drift. The latest blocks were cut reversing the cut direction on each pass (a new experimental technique for me), at a cut depth of 0.008, and I had very good results. The blocks are about 0.005 over sized as a result of tool not holding the desired path. These parts don't need to be any closer than that so I am pleased with them. Had I cut these in only one direction, they would be a good 0.025 over or under depending on the cut direction and exhibit a some taper.  

I am in the process of replacing the wooden parts with aluminum stock, in the mean time I would like to try to compensate for the flexing that the wood permits. I just hope I don't have to replace the steppers to push the extra weight after it is all modified.  

I haven't tried the function routines yet, but I will get around to it some day soon. This is not my day job.
I appreciate all of your input on this matter.

Thanks, Bill