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! > Machine Controllers Software and Solutions > G-Code Programing


G-Code Programing Discuss G-code programing and problems here!


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 12-06-2007, 12:45 AM
Stickmchn's Avatar  
Join Date: May 2007
Location: United States
Posts: 2
Stickmchn is on a distinguished road
O.D. Groove

A few days ago my boss asked me how to calculate a 1" o-ring groove on the outside of a 4" diameter part using a 1" fly cutter on a 4 axis mill using a rotary table and, it has to be the same depth. I've include a crude drawing to help explain.

http://s21.photobucket.com/albums/b2...ringgroove.jpg
Reply With Quote

  #2   Ban this user!
Old 12-06-2007, 01:29 AM
neilw20's Avatar  
Join Date: Jun 2007
Location: Australia
Age: 63
Posts: 2,338
neilw20 is on a distinguished road
Fly cutter won't work.

A fly cutter will not work. Too hard to explain.
Use a slot mill cutter that gives the correct width of cut or smaller and do a pass for inner and outer edge.

General idea is to cut a circle, like you would on a flat plate, but instead of x and y moving to create the circle you want X and A.

first set zero at the centre of the circle.
move X the 1/2 inch. G1 X-0.5
then for CW G3 I0 J0.
That would cut a circle on the flat.

What you need is for the Y part of the move to be replaced with an A move.
A is in degrees so you have to convert the Y value to degrees. for 4" that is 12.5664 circumference. divided by 1/2" (radius) gives 360/25.1328 which is +/-14.3239 degrees. So for original y going between +0.5 and -0.5, rotary head needs to go Y value multiplied by 28.6478.
You may have to create the circle from small steps of X and A, unless you can slave the Y (scaled ) to the A axis, and disable the Y moves.
I don't know how to do that in G code, but you can calculate your own circle values with sin() and Cos() functions in most controllers.
If you learn how to make your own circles on the flat without G2/G3 then you will only need to substitute the new A value, for what was calculated for Y (scaled)
The formula for a circle is X squared + Y squared = R squared if you can't use sin/cos.
As an algorithm where R is radius
FOR D = 0 to 359 with steps 0.1 to give good resolution better than 1 thou
X=SIN(D) * R
Y=COS(D) * 14.3239
NEXT
I've never tried this, but I think it is close to the mark.
If the rotary part is not digitally controlled, this will be hard work.
__________________
Super X3. 3600rpm. Three ways to fix things: The right way, the other way, and maybe your way, which is possibly a faster wrong way.
Reply With Quote

  #3   Ban this user!
Old 12-06-2007, 03:01 AM
dcoupar's Avatar  
Join Date: Mar 2003
Location: USA
Posts: 2,312
dcoupar is on a distinguished road

What make/model of machine control are you using? I don't suppose your machine has Cylindrical Interpolation, does it? If it does, use that. If it doesn't, too bad. You'll need to break the circle up into little-bitty line segments as neilw20 details above.
Reply With Quote

  #4   Ban this user!
Old 12-06-2007, 10:10 AM
 
Join Date: Apr 2006
Location: usa
Posts: 128
JWK42 is on a distinguished road

This is what one 90 degree with 1 degree steps would look like. This is for a 1 inch circle on a 4 inch cylinder. The Y axis remains on zero and the X and A axis do the cutting. You do need a full 4th axis to do this.


N10 G00 X.5 Y0. A0. Z.1
N20 G01 Z-.1 F5.
N30 X.4999 A-0.25
N40 X.4997 A-0.5
N50 X.4993 A-0.75
N60 X.4988 A-0.999
N70 X.4981 A-1.248
N80 X.4973 A-1.497
N90 X.4963 A-1.746
N100 X.4951 A-1.994
N110 X.4938 A-2.241
N120 X.4924 A-2.487
N130 X.4908 A-2.733
N140 X.4891 A-2.978
N150 X.4872 A-3.222
N160 X.4851 A-3.465
N170 X.483 A-3.707
N180 X.4806 A-3.948
N190 X.4782 A-4.188
N200 X.4755 A-4.426
N210 X.4728 A-4.663
N220 X.4698 A-4.899
N230 X.4668 A-5.133
N240 X.4636 A-5.366
N250 X.4603 A-5.597
N260 X.4568 A-5.826
N270 X.4532 A-6.054
N280 X.4494 A-6.279
N290 X.4455 A-6.503
N300 X.4415 A-6.725
N310 X.4373 A-6.944
N320 X.433 A-7.162
N330 X.4286 A-7.377
N340 X.424 A-7.591
N350 X.4193 A-7.801
N360 X.4145 A-8.01
N370 X.4096 A-8.216
N380 X.4045 A-8.419
N390 X.3993 A-8.62
N400 X.394 A-8.819
N410 X.3886 A-9.014
N420 X.383 A-9.207
N430 X.3774 A-9.397
N440 X.3716 A-9.585
N450 X.3657 A-9.769
N460 X.3597 A-9.95
N470 X.3536 A-10.129
N480 X.3473 A-10.304
N490 X.341 A-10.476
N500 X.3346 A-10.645
N510 X.328 A-10.81
N520 X.3214 A-10.973
N530 X.3147 A-11.132
N540 X.3078 A-11.287
N550 X.3009 A-11.44
N560 X.2939 A-11.588
N570 X.2868 A-11.733
N580 X.2796 A-11.875
N590 X.2723 A-12.013
N600 X.265 A-12.147
N610 X.2575 A-12.278
N620 X.25 A-12.405
N630 X.2424 A-12.528
N640 X.2347 A-12.647
N650 X.227 A-12.763
N660 X.2192 A-12.874
N670 X.2113 A-12.982
N680 X.2034 A-13.086
N690 X.1954 A-13.185
N700 X.1873 A-13.281
N710 X.1792 A-13.373
N720 X.171 A-13.46
N730 X.1628 A-13.544
N740 X.1545 A-13.623
N750 X.1462 A-13.698
N760 X.1378 A-13.769
N770 X.1294 A-13.836
N780 X.121 A-13.898
N790 X.1125 A-13.957
N800 X.104 A-14.011
N810 X.0954 A-14.061
N820 X.0868 A-14.106
N830 X.0782 A-14.148
N840 X.0696 A-14.185
N850 X.0609 A-14.217
N860 X.0523 A-14.245
N870 X.0436 A-14.269
N880 X.0349 A-14.289
N890 X.0262 A-14.304
N900 X.0175 A-14.315
N910 X.0087 A-14.322
N920 X0. A-14.324
Reply With Quote

  #5   Ban this user!
Old 12-06-2007, 10:39 AM
 
Join Date: Jul 2005
Location: Canada
Posts: 11,564
Geof will become famous soon enough

Originally Posted by Stickmchn View Post
A few days ago my boss asked me how to calculate a 1" o-ring groove on the outside of a 4" diameter part using a 1" fly cutter on a 4 axis mill using a rotary table and, it has to be the same depth. I've include a crude drawing to help explain.

http://s21.photobucket.com/albums/b2...ringgroove.jpg
Is your machine able to do Cylindrical Mapping? With this you simply write the program for the X Y plane and then tell the machine to map it onto the cylinder.
__________________
An open mind is a virtue...so long as all the common sense has not leaked out.
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 12-06-2007, 02:56 PM
 
Join Date: Nov 2007
Location: Scotland
Posts: 10
Dave Mc is on a distinguished road
O.D. Groove

We recently did some work milling this type of groove and used a Excel spreadsheet to calculate 1/2 degree moves. If it is of interest let me have your email address and I will send it along with some instructions. We now have a VMC that does helical interpolation in 4 blocks per rev instead of 720.
Reply With Quote

  #7   Ban this user!
Old 12-07-2007, 08:19 AM
 
Join Date: Jul 2003
Location: New Zealand
Posts: 1,039
Kiwi is on a distinguished road

Attached is a VB program which will generate code.
Attached Files
File Type: zip O Ring Groove V2.zip‎ (9.4 KB, 113 views)

Last edited by Kiwi; 12-07-2007 at 08:42 PM. Reason: Correct error
Reply With Quote

  #8   Ban this user!
Old 12-07-2007, 10:59 AM
neilw20's Avatar  
Join Date: Jun 2007
Location: Australia
Age: 63
Posts: 2,338
neilw20 is on a distinguished road
Smile Cut and paste is great!

Originally Posted by Kiwi View Post
Attached is a VB program which will generate code.
Well done.
__________________
Super X3. 3600rpm. Three ways to fix things: The right way, the other way, and maybe your way, which is possibly a faster wrong way.
Reply With Quote

  #9   Ban this user!
Old 12-07-2007, 06:22 PM
 
Join Date: Jul 2003
Location: New Zealand
Posts: 1,039
Kiwi is on a distinguished road

To determine the angle is the 1 in measured around the arc or square to the radius?
Reply With Quote

  #10   Ban this user!
Old 12-08-2007, 02:04 PM
neilw20's Avatar  
Join Date: Jun 2007
Location: Australia
Age: 63
Posts: 2,338
neilw20 is on a distinguished road
Talking Maybe neither!

Originally Posted by Kiwi View Post
To determine the angle is the 1 in measured around the arc or square to the radius?
They might want it line up with a hole in something.
The it would be a projection of the hole, which might mess the math slightly.
As the diameter of the shaft gets smaller, then the angle becomes larger.
Now we need to know how deep the cut is. It's 3D world. (LOL)
__________________
Super X3. 3600rpm. Three ways to fix things: The right way, the other way, and maybe your way, which is possibly a faster wrong way.
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 12-08-2007, 04:29 PM
 
Join Date: Jul 2003
Location: New Zealand
Posts: 1,039
Kiwi is on a distinguished road

I noticed other examples used the arc length to determine the angle where I used the angle of a 1in flat sq to the axis.
This is how I see the outcome:
Arc length would need a 1in O ring but groove undersize.
Flat angle method gives a 1in dia groove but needs a larger than 1in O ring.
Reply With Quote

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
V-Groove Bearings widgitmaster DIY-CNC Router Table Machines 24 02-27-2007 02:14 PM
v groove wheels dertsap DIY-CNC Router Table Machines 25 02-13-2007 08:32 PM
Where to get this v-groove guide at? WarrenW Linear and Rotary Motion 1 06-26-2006 03:07 PM
V groove casters AustinT Linear and Rotary Motion 4 12-24-2005 11:44 PM




All times are GMT -5. The time now is 10:06 PM.





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