CNCzone.com-The Largest Machinist Community on the net!



Home Page Mark Forums Read Today's Posts My Replies Classifieds Reviews Photo Gallery Web Links Share Files Advertise With Us Ad List
Go Back   CNCzone.com-The Largest Machinist Community on the net! > MetalWorking Machines > General Metal Working Machines


General Metal Working Machines General discussions of all metal working machines from drill presses to band-saws.


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 04-23-2009, 02:23 PM
 
Join Date: Jun 2004
Location: United States
Posts: 4
mattslay is on a distinguished road
Formula to calculate facing time in a lathe?

Does anyone know the formula to calculate the theoretical time to make a facing cut across a part (in a CNC lathe)?

For instance...

Imagine a ring that is 20" O.D. and has a 4" I.D., and I want to estimate the time to make 1 facing cut across the face.

(I'm looking for the formula, not just the answer to this sample set of numbers.)

O.D. = 20
I.D. = 4
Feedrate = .010" per rev (constant)
SFM = 300 (spindle speed will vary to hold this number)



Matt Slay
Jordan Machine Co.
Birmingham, AL
Reply With Quote

  #2   Ban this user!
Old 04-23-2009, 02:35 PM
 
Join Date: Jul 2005
Location: Canada
Posts: 11,565
Geof will become famous soon enough

I don't know of a single formula but you should be able to calculate it this way:

You know what the rpm is to start; 20" dia., 300sfm = ? rpm this is an easy calculation.

You have the spindle speed clamped so at some diameter you reach the clamp rpm so you do the calculation backward to find what diameter the tool is at.

Now take the average of the starting rpm and the clamp rpm and take the average of the starting diameter and the diameter at which the clamp rpm is reached.

Use these two averages to calculate the time taken to go from the start to to the diameter at which the speed gets clamped.

Once the spindle is running at a constant speed it is easy to calculate the remaining time to reach the 4" diameter.
__________________
An open mind is a virtue...so long as all the common sense has not leaked out.
Reply With Quote

  #3   Ban this user!
Old 04-23-2009, 04:20 PM
 
Join Date: Jan 2007
Location: USA
Posts: 355
Eurisko is on a distinguished road

Matt,

This is classic Calculus. It's been over 25 years since I took it, but I was able to refresh my memory with a "Calculus for Dummies" book.

Feedrate is a function of RPM, which is a function of the radius (and CSS) when facing.

Time (min/inch) is the inverse of feedrate (in/min)

So to make a long story short, here is the general equation:

F=feedrate in inches per revolution
R1=starting radius in inches (larger radius)
R2=ending radius in inches (smaller radius)
CSS=constant surface speed in feet per minute
PI=PI

total time in minutes = (PI / ( F X CSS X 12)) X (R1 ^ 2 - R2 ^2)

Plug your numbers into this equation and you'll get 8.3776 minutes.
The answer is exact. I rounded it to 4 decimal places.

If you clamp your spindle speed before reaching maximum rpm's, (at 4 inches) it will take longer.
__________________
Diplomacy is the art of saying "Nice doggie" until you can find a rock. - Will Rogers

Last edited by Eurisko; 04-23-2009 at 05:01 PM.
Reply With Quote

  #4   Ban this user!
Old 04-24-2009, 10:12 PM
 
Join Date: Mar 2008
Location: USA
Posts: 430
PixMan is on a distinguished road

Eurisko,

Your formula is perfect except for the missing element of maximum spindle speed clamp value.
Reply With Quote

  #5   Ban this user!
Old 04-24-2009, 11:10 PM
 
Join Date: Jun 2004
Location: United States
Posts: 4
mattslay is on a distinguished road

Well, I got several suggestions to figure the RPM at the average dia and then use the feedrate over the distance to be traveled. I did not like this intuitive approach, since my quest was for an exact answer (within a second or two at least), and I was sure averaging was not going to get that accurate . So, I wrote a C# program to iterate over the face at the feedrate amount, and calculate the rpm at each increment, and then determine the time for that rev to occur, and then sum them all up (kind of sounds like Calculus, huh, Eurisko?). (See my C# code below)

As it turns out, the avereage and the calculus are EXACTLY the same answer as each other, and my iterative solution also gives (essentially) the same answer (within 1/2 second).

Results:

Avereage approach: 8.3776 min
Calculus formula: 8.3776
Iterative loop: 8.3705 min

Anyway, I am conviced that the intuitive "average" model actually gives the correct answer, as well as the beautiful calculus formula, as well as my C# hacking.

Agree?

(Oh yeah, and, none of these account for the clamping out of the spindle speed as someone mentioned, but that would be easy to add to my iterative loop, it's just a test to limit rpm after calculating it)

Here is my C# code, in case anyone wants review it, or play around with it in Visual Studio:



using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApplication1
{
class Program
{

static void Main(string[] args)
{
FacingCuts Cut = new FacingCuts();
Cut.InitialDia = 20;
Cut.FinishDia = 4;
Cut.SFM = 300;
Cut.FeedRate = 0.010;

Console.WriteLine("Cycle Time {0} min.", Cut.CalculateFacingTime());
Console.ReadLine();

}
}


class FacingCuts
{
public double InitialDia = 0;
public double FinishDia;
public double SFM;
public double FeedRate;

public double CalculateFacingTime()
{
int x;
double CurrentDia;
double RPM;
double Circumference;
double TotalTime = 0;
double FaceDistance = Math.Abs(InitialDia - FinishDia)/2.0;
if (InitialDia > FinishDia)
{
FeedRate = FeedRate * -1;
}
int NumberOfRevs = Math.Abs((int)(FaceDistance / FeedRate));

for (x = 1; x <= NumberOfRevs; x++)
{
CurrentDia = InitialDia + (x * 2 * FeedRate);
Circumference = CurrentDia * Math.PI / 12;
RPM = SFM / Circumference;
TotalTime = TotalTime + (1 / RPM);
}

return TotalTime;
}


}

}

Last edited by mattslay; 04-25-2009 at 07:01 AM.
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 04-27-2009, 09:33 PM
 
Join Date: Jan 2007
Location: USA
Posts: 355
Eurisko is on a distinguished road

Matt,

I'm not well versed in C#, I tested the Calculus equation with QBasic.

An iterative approach is the way to go if you have to deal with clamping the spindle speed.

In reality, there are four possibilities.
1) The spindle speed is clamped lower than the starting RPM
2) The spindle speed is clamped at the starting RPM
3) The spindle speed is clamped between the starting and ending RPM's
4) The spindle speed is clamped at or higher than the ending RPM

An interesting approach is to calculate how much time it takes to reach the clamp RPM.

CLAMP=clamp RPM

time in minutes = (PI / ( F X CSS X 12)) X ( R1 ^2 - ( (CSS X 6) / ( PI X CLAMP)) ^2 )

If the clamp time is negative, condition 1 is met
If the clamp time is zero, condition 2 is met
If the clamp time is greater than zero and less than the actual time, condition 3 is met.
If the clamp time is greater than or equal to the actual time, condition 4 is met.

Of course, you could always calculate the clamp radius, which appears in the equation as (CSS X 6) /(PI X CLAMP)

There's just something about "negative time" that appeals to me.
__________________
Diplomacy is the art of saying "Nice doggie" until you can find a rock. - Will Rogers
Reply With Quote

  #7   Ban this user!
Old 09-01-2009, 11:59 PM
 
Join Date: Sep 2009
Location: U.S.A
Posts: 5
Changedsoul is on a distinguished road

This is great, I have just recently been trying to figure this out my self. Thanks for the nice simple formula that works out to be very accurate.

I was also wondering how you could calculate the time needed to move along a radius. Would it be the same principle? Because now your moving in two axis and not one.

I was thinking about finding the average diameter and take the spindle speed at that point, then calculate the arc length the tool would move on, and use that length with that spindle speed with a given feed rate to produce the time.

Would this be correct? And what about the spindle clamp speed as well?
Reply With Quote

  #8   Ban this user!
Old 09-02-2009, 04:26 AM
BlueChip's Avatar  
Join Date: Jun 2003
Location: Massachusetts
Posts: 130
BlueChip is on a distinguished road
Wasted time = Wasted money

Why bother ... KipwareCYC ... www.KentechInc.com ... will do it all for you.

Reply With Quote

  #9   Ban this user!
Old 09-02-2009, 10:14 AM
 
Join Date: Sep 2009
Location: U.S.A
Posts: 5
Changedsoul is on a distinguished road

Well yes there is always that, but there is a slight problem for me, This software cost allot of money. Most of all though, I am actually trying to write a program to calculate the time it takes to machine a part. It scans through the prog adding up all the movments, but also adds time taken for moving steady rest and tail stock and all other good time consuming things up for a grand total.

I work at a place where we have a programming department that gives us the programs and how long it should take to run the part, but more than not, they have the times completely wrong.

So as a way for me to learn C++ like I wanted to I figured I would have a go at this. I just dont know what i can do to calculate radius movements. I run large parts so a radius is a big factor. It could take 1 min to move along a small radius.

So anyways...thats why I cannot just use that software, also I dont have hundreds of dollars in my wallet
Reply With Quote

  #10   Ban this user!
Old 09-25-2009, 11:32 AM
 
Join Date: Oct 2006
Location: USA
Posts: 134
donl517 is on a distinguished road

Hey Matt,

Thanks for the great example, Have you done any other work on this?

Don
Reply With Quote

Sponsored Links
Reply




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Lathe - internal facing tools? kong General Metal Working Machines 3 03-09-2009 01:26 PM
Need Help!- calculate machining time from G-Code smar G-Code Programing 15 02-23-2009 04:06 PM
Need Help!- First Time Facing with Mastercam JWB_Machining Mastercam 3 11-24-2008 07:34 AM
Need Help!- HAAS Lathe G94 Facing Can Cycle nhatnam4 G-Code Programing 5 06-11-2008 11:48 PM
cycle time formula cncsdr General Metalwork Discussion 7 12-29-2005 06:21 PM




All times are GMT -5. The time now is 02:50 AM.





Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Content Relevant URLs by vBSEO
Template-Modifications by TMS

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361