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 01-17-2012, 11:04 PM
 
Join Date: Jan 2012
Location: USA
Posts: 3
claires-dad is on a distinguished road
Trying to write G-code to cut a tapered flute

Hi, I've built a CNC router to use for building a pinball machine. Most of the work is fairly straightforward using my 2.5D CAM program (Vectrix Cut2D), but I'm stuck on one cut. I need to cut a tapered flute at the bottom of the shooter lane. The cut should look like a cylinder intersecting a plane on an angle, or a groove with a rounded bottom where the depth varies. I thought I would cut it with a 1/4" ball-nozed end mill either of two ways: using G01 cuts parallel with the cylinder, or a sequence of G18 G02 cuts to cut cross-sections of the cylinder.

Has anyone done this before, or something similar? This is my first attempt at writing G-code beyond very simple scripts to test my machine, so I'd appreciate any suggestions or pointers. Thanks.

--Steve


Here's a picture - ignore the slot at the bottom, it's the angled flute that's the challenge.

Last edited by claires-dad; 01-17-2012 at 11:05 PM. Reason: added a picture
Reply With Quote

  #2   Ban this user!
Old 01-18-2012, 02:04 AM
fordav11's Avatar  
Join Date: Aug 2011
Location: Fordaville
Posts: 939
fordav11 is on a distinguished road

if your machine can handle the cutter you can use a large ball-nose slot drill or some kind of ball-nose router bit.
start the cut at one end and cut only in 2 axis X Z.
for example if the length of the slot is in the X axis something like this....

G00 X0 Y0
Z1.0
G1 Z0
G1 X15.0 Z-0.3


One cut and problem solved

I have one pinball machine. My slot is not very deep (~0.300) and is about 15" long.

The cutter doesn't really need to be any bigger than 1 1/8" to maybe 1 1/4" because a standard pinball is 1 1/16" diameter.

If you want to use a smaller cutter try to use the biggest possible so you will have less sanding of steps to do after.

To use my above method with smaller cutter do something like this....

G00 X0 Y0 (Y0 is middle of slot)
Z1.0
G1 Z0
G1 X15.0 Z-0.3
G0 Z0.1
X0
Y0.1 (*)
G1 Z0.05 (*)
G1 X15.0 Z-0.25 (*)
G0 Z0.1
X0
etc


The Y and Z sizes marked by * will need to be properly calculated to give a smooth curve with multiple passes.
It can be done using CAM software easily.

Last edited by fordav11; 01-18-2012 at 02:47 AM.
Reply With Quote

  #3   Ban this user!
Old 01-18-2012, 08:46 PM
 
Join Date: Jan 2012
Location: USA
Posts: 3
claires-dad is on a distinguished road

Thanks for the info. Unfortunately, I can't use that large a cutter. I had started with the CNC machine because I had been unable to find a 1-1/16" ball nose router bit. On my machine, I'm limited to cutters with a 1/8" or 1/4" shank.

Your second method is one I was planning to use - if anyone out there can suggest an algorithm for looping through the cuts, that would be great.
Reply With Quote

  #4   Ban this user!
Old 01-19-2012, 02:32 AM
fordav11's Avatar  
Join Date: Aug 2011
Location: Fordaville
Posts: 939
fordav11 is on a distinguished road

To do it that way will require CAM software to get the curve smooth.

Your other method of multiple G02's will work if you can tilt and clamp the board to your required angle. It shouldn't be difficult just pack it up at one end with a approx. 0.200" spacer and clamp it down.

Then just do a heap of identical arcs in YZ plane. You don't even need to do any calculations. Just cut 9/16" rads (half of dia 1 1/16").
Set your Z0 to approx 0.36" above the top of the material and it will cut air for the first part. The depth at the deepest end will be around 0.200". If you need more taper increase the spacer packing.

example (in metric)

T01
M06
G54
G97 S1000 M3
G0 X0 Y13.49
Z0
G19 G02 Y-13.49 Z0 K0 J-13.49
G0 X1.0 Y13.49
G19 G02 Y-13.49 Z0 K0 J-13.49
G0 X2.0 Y13.49
G19 G02 Y-13.49 Z0 K0 J-13.49
G0 X3.0 Y13.49
G19 G02 Y-13.49 Z0 K0 J-13.49
G0 X4.0 Y13.49
G19 G02 Y-13.49 Z0 K0 J-13.49
G0 X5.0 Y13.49
G19 G02 Y-13.49 Z0 K0 J-13.49
G0 X6.0 Y13.49
G19 G02 Y-13.49 Z0 K0 J-13.49
G0 X7.0 Y13.49
G19 G02 Y-13.49 Z0 K0 J-13.49
G0 X8.0 Y13.49
G19 G02 Y-13.49 Z0 K0 J-13.49
G0 X9.0 Y13.49
G19 G02 Y-13.49 Z0 K0 J-13.49
G0 X10.0 Y13.49
G19 G02 Y-13.49 Z0 K0 J-13.49
G0 X11.0 Y13.49

etc


keep increasing X by 1.0 (or 0.5) and repeat the G02 line

see pic attached for a sample showing it works
Attached Thumbnails
Click image for larger version

Name:	Untitled-1.jpg‎
Views:	31
Size:	98.2 KB
ID:	150543  

Last edited by fordav11; 01-19-2012 at 03:51 AM.
Reply With Quote

  #5   Ban this user!
Old 01-19-2012, 12:23 PM
 
Join Date: May 2011
Location: USA
Posts: 29
SquibLoad is on a distinguished road

Originally Posted by claires-dad View Post
Thanks for the info. Unfortunately, I can't use that large a cutter. I had started with the CNC machine because I had been unable to find a 1-1/16" ball nose router bit. On my machine, I'm limited to cutters with a 1/8" or 1/4" shank.

Your second method is one I was planning to use - if anyone out there can suggest an algorithm for looping through the cuts, that would be great.
Try these:

MLCS core box and round nose router bits

This should do the job. I've used these for large diameter relief cuts while making bridges for guitars, and they work well. Just raise (or drop) your Z from start to finish by an amount that matches the slope of your ramp. Quick and easy.
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 01-19-2012, 12:27 PM
 
Join Date: May 2011
Location: USA
Posts: 29
SquibLoad is on a distinguished road

Originally Posted by SquibLoad View Post
Try these:

MLCS core box and round nose router bits

This should do the job. I've used these for large diameter relief cuts while making bridges for guitars, and they work well. Just raise (or drop) your Z from start to finish by an amount that matches the slope of your ramp. Quick and easy.
Also forgot to mention that Whiteside will cut just about any bit you need.

Or, you could use an indexed tool holder and have a blade cut that matches the radius you need. Any local tool sharpener could cut one for you.
Reply With Quote

  #7   Ban this user!
Old 01-19-2012, 03:21 PM
fordav11's Avatar  
Join Date: Aug 2011
Location: Fordaville
Posts: 939
fordav11 is on a distinguished road

they don't have 1 1/16" in 1/4" shank. its not practical to have a small shank and big cutter head.
the above program will work with a smaller cutter then he can just sand it a bit to smooth it out (or take smaller steps)
Reply With Quote

  #8   Ban this user!
Old 01-20-2012, 09:38 AM
 
Join Date: Jan 2012
Location: USA
Posts: 3
claires-dad is on a distinguished road

Thanks for the program example. I get confused easily with G02/G03 in a different axis, so this helps and should do the job.
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
newb talk, 2 flute vs 4 flute cutters DerHammer General Metalwork Discussion 40 05-05-2009 04:01 PM
Write Wizard Code Generation Problem saabaero Tormach PCNC 9 10-30-2008 04:34 AM
How to write a code program to cut threads jjenks NCPlot G-Code editor / backplotter 7 04-21-2008 09:18 PM




All times are GMT -5. The time now is 08:03 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