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 09-16-2007, 02:59 AM
 
Join Date: Jul 2006
Location: US
Posts: 24
RogerRetro is on a distinguished road
How would I code a surface cut radiused in the y-Z plane around an x axis centerline?

I am new to G-code programming, and simply do hand coding presently. I have designed this little part, for which I have attached a small .PDF of a 3D model. I have been able to code all of the cuts but a couple, for two areas of the model. these are outside 90 degrees of arc curved surfaces running parallel to, and concentrically about a centerline bore.

I have not found any code samples of this type of cut, and could use a jump-start on an approach to the problem. (G2/G3 G18/19 I'm guessing!? - I'm having touble conceptualizing how to handle this.) I hope that between my explanation and the attached illustration, the problem is understandable.

Thanks for any help offered.

Regards,

Roger
Attached Files
File Type: pdf Motor&Spindle Mount.pdf‎ (80.1 KB, 142 views)
Reply With Quote

  #2   Ban this user!
Old 09-16-2007, 08:16 AM
 
Join Date: Jul 2005
Location: Canada
Posts: 11,563
Geof will become famous soon enough

I tried looking at your pdf but it did not open correctly. Can you convert the picture to a jpg?
__________________
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 09-16-2007, 09:53 AM
 
Join Date: Jul 2006
Location: US
Posts: 24
RogerRetro is on a distinguished road

Originally Posted by Geof View Post
I tried looking at your pdf but it did not open correctly. Can you convert the picture to a jpg?
Geof, Here it is in .JPG. Thanks for looking.

Roger
Attached Thumbnails
Click image for larger version

Name:	Motor&Spindle Mount.jpg‎
Views:	132
Size:	70.5 KB
ID:	43727  
Reply With Quote

  #4   Ban this user!
Old 09-16-2007, 01:07 PM
 
Join Date: Nov 2004
Location: USA
Posts: 435
spoiledbrat is on a distinguished road

From my understanding, once the G17 mode is in effect, G2 and G3 create circular interpolation in the xy plane. G18 and G19 select the Y-Z and X-Z planes, respectively. Therefore, once your machine is placed into G18, a G2 or G3 move will react appropriately to your needs.
Reply With Quote

  #5   Ban this user!
Old 09-17-2007, 03:09 AM
 
Join Date: Jul 2003
Location: New Zealand
Posts: 1,039
Kiwi is on a distinguished road

When G18 and G19 are used what is the procedure to handle the Tool length compensation?
I tried using G18/19 on my 3axis VMCentre and the tool would move in the relevant perpendicular axis the tool length compensation distance.
ZX Plane = Y axis. YZ Plane = X axis.
The only way I could see how to stop this movement was to enter zero as the tool compensation length.

Sorry to high-jack your thread but I considered this relevant.
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 09-17-2007, 07:35 AM
 
Join Date: Apr 2006
Location: usa
Posts: 128
JWK42 is on a distinguished road

We program a right angle head on our Haas EC-1600. Tool length and tool radius comp do not work. G2 and G3 work with G18 (around 'Y' axis) or G19 (around 'X' axis) but you have to include the tool radius when you program any movements straight or arc. None of the canned cycles work with G18 or G19 mode. We use G10 to set our work Zero. If you have Cad/Cam it should be able to generate the code with out tool L/R comp.
Good luck.
Reply With Quote

  #7   Ban this user!
Old 09-17-2007, 10:09 AM
 
Join Date: Jul 2005
Location: Canada
Posts: 11,563
Geof will become famous soon enough

That is an awkward shape to generate without using CAM but here is a way using G18 and circular interpolation.

You will need a 'bullnose or bull' endmill which has a radius on the corner of the cutting edge.

I have done a simple sketch showing the profile of the part. Machine the part so it has a square corner where you want the radiused profile. The bull mill leaves a small radius along the root of the clamping flanges which you want anyway because a sharp square corner here is a terrible stress raiser; it would almost certainly crack at this point with a sharp corner.

The profile is done by starting at the top as shown with the red tool and following the path given by the G18 G02 Y Z and the Y and Z coordinates are the tool position at the bottom of the arc.

This toolpath cutters a circular groove the radius of the cutter so now you go back up to the starting point and move along maybe 0.005" then do the G02 move again. Repeat this for the full length and you have your profile.

You cannot avoid generating a scalloped surface and if you used CAM the same applies. You just control the depth of the scallops by the amount you step along at each pass.

I would write the full code for all the repeat passes by having the G18 G02 move in a subroutine and have the 0.005" stepover an incremental move before each call to the subroutine. All the coordinates have to taken into account both the tool radius and corner radius because tool compensation often is not available for G18 moves.

Like I said above awkward...and tedious.
Attached Thumbnails
Click image for larger version

Name:	rretro.jpg‎
Views:	77
Size:	19.3 KB
ID:	43806  
__________________
An open mind is a virtue...so long as all the common sense has not leaked out.
Reply With Quote

  #8   Ban this user!
Old 09-17-2007, 01:49 PM
 
Join Date: Jul 2006
Location: US
Posts: 24
RogerRetro is on a distinguished road

Thanks for the replies, all...

spoiledbrat,
That helps a little,

Kiwi,
I don't have enough understanding of this stuff to make an intelligent comment.

JWK42,
trying to get my brain around your right angle head just gives me a headache!
and I don't have CAM, so I'm stuck with hand coding at this point.

Geof,
I think I got it... I sort of had this idea, but was getting confused with how to structure it. This gives me something more concrete to work with. I'll get into compensation etc. as I explore the results of my coding...

Again thanks all and Regards,

Roger
Reply With Quote

  #9   Ban this user!
Old 09-17-2007, 03:12 PM
 
Join Date: Apr 2006
Location: usa
Posts: 128
JWK42 is on a distinguished road

Roger
A right angle head turns a horizontal machine center in to a vertical machine center with a 60" X 40" envelope. We only have a few parts that we do with this configuration. Can't justify a 60" vertical.
Attached Thumbnails
Click image for larger version

Name:	Monster Head 023.jpg‎
Views:	86
Size:	201.2 KB
ID:	43818  
Reply With Quote

  #10   Ban this user!
Old 09-17-2007, 04:11 PM
 
Join Date: Jul 2003
Location: New Zealand
Posts: 1,039
Kiwi is on a distinguished road

JWK42
Does a horizontal mill use 'Z' as the vertical or horizontal axis?
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 09-17-2007, 04:22 PM
 
Join Date: Apr 2006
Location: usa
Posts: 128
JWK42 is on a distinguished road

Kiwi
The "Z" is horizontal. In the picture the end mill is along the "Y" axis. I will attach 2 more pics.
Attached Thumbnails
Click image for larger version

Name:	Monster Head 022.jpg‎
Views:	68
Size:	201.9 KB
ID:	43820   Click image for larger version

Name:	Monster Head 026.jpg‎
Views:	65
Size:	190.6 KB
ID:	43821  
Reply With Quote

  #12   Ban this user!
Old 09-17-2007, 05:16 PM
 
Join Date: Jul 2003
Location: New Zealand
Posts: 1,039
Kiwi is on a distinguished road

JWK42
Looks like as standard that the machine spindle axis is considered as Z.

I raised the tool comp issue as I thought Roder would need to consider this while using G18/19.

I now believe my controller parameters are not set correctly as tool length comp is applied on the perpendicular axis(G18 ZX Plane = Y axis. G19 YZ Plane = X axis) when this should only be applied on the Z axis.

Last edited by Kiwi; 09-17-2007 at 05:42 PM. Reason: spelling
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
Free (G-Code Program) Surface Router Table Switcher Visual Basic 22 08-16-2009 03:00 PM
mazak machine centerline Bob Archibald Mazak, Mitsubishi, Mazatrol 2 10-09-2007 02:14 PM
How to generate g-code to mill flat surface pminmo G-Code Programing 14 09-10-2006 12:33 PM
construction plane and tool plane nervis1 Mastercam 9 11-04-2004 11:53 PM
cycles initial plane/retract plane HuFlungDung OneCNC 25 06-26-2003 07:02 PM




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