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 03-19-2007, 02:08 AM
 
Join Date: Jun 2005
Location: USA
Posts: 55
Xterrian is on a distinguished road
How to Radius corners of a box.

I'm making some boxes with lids. The lids will have a recess that the box fits into. Of course the corners of the recessed portion of the lid are rounded just like the mill I'm cutting the recess with. My question is, how do I radius the corners of the box so that they fit into the corners of the lid. I'm sure I have to use R in the G-code, but not sure exactly how to make the mill cut in a straight line and then curve around the 90 dgree corner and then continue in a straight line again. Any help would be appreciated.
Thanks,
Randall
Reply With Quote

  #2   Ban this user!
Old 03-19-2007, 09:01 AM
gar gar is offline
 
Join Date: Mar 2005
Location: USA
Posts: 1,498
gar is on a distinguished road

070319-0858 EST USA

Download the HAAS mill manual and then study the G02 and G03 codes.

Also G90, G91, G40, G41, G52, and G54.

.
Reply With Quote

  #3   Ban this user!
Old 03-20-2007, 01:42 AM
 
Join Date: Jun 2005
Location: USA
Posts: 55
Xterrian is on a distinguished road

I've spent the evening reading the Hass manual and am learning a lot, but I just can't get a simple 90 degree turn with a curved corner in cnc simulator. I get an error if I ask for a radius less than 5. I'm having a problem figuring out the offset as well. This is what I'm trying:
T4
G21
G00 X0 Y0 Z5
G00 Z-5
G01 X-10 Y0
G02 X-10 Y10 R5

(I changed T4 to a 4mm end mill)

This gives me a curve, but if I try to lessen the curve by decreasing the radius I get an illegal endpoint error.

I enjoy RTFM, but as usual it reads like a FM and I'm just not getting it. Could someone try to explain it to me? I've read pages 78 and 79 five times and played with the code in the simulator for several hours and just can't get it to work.

Thanks again for the help. I'm sure that I'm heading in the right direction.
Randall
Reply With Quote

  #4   Ban this user!
Old 03-20-2007, 07:06 AM
 
Join Date: Aug 2005
Location: USA
Posts: 197
Verfur is on a distinguished road

I have never used the "R" I have always used the cord xy I and J. But I will chime in any way If the format is correct Then the end pionts are wrong.

Usealy if you turn a corner both the X and Y end pionts are difrent from the start piont.

started at x-10 y0 turned corner
at g02 x-15 y5 r5


the way I would right it would be long hand
g1X-10y0
g2 x-15 y5 I-10 j5 F100

You will need a feed rate so I stuck in F100


Hope this helps
Reply With Quote

  #5  
Old 03-20-2007, 08:07 AM
ger21's Avatar
Community Moderator
 
Join Date: Mar 2003
Location: Shelby Twp, MI....USA
Posts: 20,454
ger21 is on a distinguished road
Buy me a Beer?

Originally Posted by Xterrian View Post
T4
G21
G00 X0 Y0 Z5
G00 Z-5
G01 X-10 Y0
G02 X-10 Y10 R5

(I changed T4 to a 4mm end mill)

This gives me a curve, but if I try to lessen the curve by decreasing the radius I get an illegal endpoint error.
Your traveling 10 units (Y0 to Y10) with a 5 unit radius, which gives you a half circle. If you decrease the radius, you can't reach the specified endpoint, because you'll have a circle with a diameter less than 10 units. Does that make sense?
__________________
Gerry

Mach3 2010 Screenset
http://home.comcast.net/~cncwoodworker/2010.html

(Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 03-21-2007, 12:32 AM
 
Join Date: Jun 2005
Location: USA
Posts: 55
Xterrian is on a distinguished road

That does make sense to me now why the radius couldn't be less than 5, but I still can't figure out how to make a 90 degree turn with a rounded corner. I've sat for hours putting different numbers for X, Y and R as well as I and J, but no 90 degree arc. I just can't figure it out. I'm all about showing people how to do things so that they understand why it works that way, but I've struggled with this for three days now and it's starting to get to the point where the knowledge isn't worth the effort expended to gain it. Could someone just tell me how to make a 90 degree turn with a rounded corner so the little light can go on over my head and I can get on with my life?
Thanks in advance,
Randall
Reply With Quote

  #7  
Old 03-21-2007, 06:45 AM
ger21's Avatar
Community Moderator
 
Join Date: Mar 2003
Location: Shelby Twp, MI....USA
Posts: 20,454
ger21 is on a distinguished road
Buy me a Beer?

G1 X0.00 Y0.00 Z-0.20
G1 X0.00 Y2.00 Z-0.20
G2 X1.00 Y3.00 Z-0.20 I1.00 J0.00
G1 X3.00 Y3.00 Z-0.20

or

G1 X0.00 Y0.00 Z-0.20 F10
G1 X0.00 Y2.00 Z-0.20 F20
G2 X1.00 Y3.00 Z-0.20 R1
G1 X3.00 Y3.00 Z-0.20
__________________
Gerry

Mach3 2010 Screenset
http://home.comcast.net/~cncwoodworker/2010.html

(Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)
Reply With Quote

  #8   Ban this user!
Old 03-21-2007, 08:43 AM
gar gar is offline
 
Join Date: Mar 2005
Location: USA
Posts: 1,498
gar is on a distinguished road

070321-0701 EST USA

Xterrian:

First, some limitations.

The radius of the arc that you want to generate must be larger than the radius of the cutter. Under some conditions the two radii could be equal. Applies mostly to an inside cut. There can be other limitations on outside cuts.

In cutter comp you will get an error if this requirement is not met.

In non-cutter comp you will get the radius of the cutter, and maybe an erroneous cut.

In HAAS to cut a complete circle in one operation you must use the I, J, K method. The R technique will not work.

In the R method you must have a correct endpoint in relation to the starting point and the radius.

In G40 mode (non-cutter comp) you have to do more analysis for cutter path than in cutter comp mode. However, the machine will not give an error message for a cutter too large for the intended finished arc. You will just get a bad cut.


Now consider your 90 deg corner and I and J (assuming we are working in the x-y plane).

You will start with a straight line to a point P1. P1 is the starting point of your arc. The center point P2 of your arc is Xcenter = P1x+I, and Ycenter = P1y+J . The X and Y values on the G02 or 3 line define the endpoint, P3, of the arc.

Assume we use G90 (absolute), G40 (no cutter comp), the I-J method, and climb cut. The outside cut is 4" in X and 2" in Y with corner radii of 0.5". The lower left corner of the rectangle is 0, 0. Then you can use the following code:

G90
G40
F40.0
G00 X-0.25 Y-0.25 Z+0.1 (move to start point at clearance plane)
G01 Z-0.5 (vertical move to cutting plane)
G01 Y+1.50 (move along Y-axis to start of radius)
G02 X+0.50 Y+2.25 I+0.75 J+0.0 (CW arc of radius 0.75" -- 0.5 + 0.25)
(the start point of the tool path for the arc is -0.25, +1.5)
(the end point is +0.50, +2.25, and arc center is +0.50, +1.50)
G01 X+3.5
G02 (see if you can proceed from here)

Note: I and J are incremental from the start point even though we are in absolute mode (G90).

If I made any mistakes please correct me.

.
Reply With Quote

  #9   Ban this user!
Old 03-22-2007, 01:31 AM
 
Join Date: Jun 2005
Location: USA
Posts: 55
Xterrian is on a distinguished road

Thanks for the quick replies. I can see that this problem is much more complicated than a simple explanantion. I am working hard to understand it and I think you guys have brought me much closer to a final understanding. My problem is a basic lack of math skills. I can figure out just about any problem, it just takes me a while due to not learning basic concepts in high school. I will probably have to sit down with a piece of graph paper and draw the whole thing out to get to a solution that works for me. I guess I was just hoping there was a much simpler solution. Thanks again and I will post back once I get it figured out.
Randall
Reply With Quote

  #10   Ban this user!
Old 03-22-2007, 05:16 AM
gar gar is offline
 
Join Date: Mar 2005
Location: USA
Posts: 1,498
gar is on a distinguished road

070322-0512 EST USA

Xterrian:

It is much easier using cutter comp, but that also means you need to learn certain aspects of working with cutter comp.

I am leaving town for a few days and do not have time now to do my example in G41-G42 mode.

Maybe someone else will give you such an example.

.
Reply With Quote

Sponsored Links
  #11  
Old 03-22-2007, 06:22 AM
ger21's Avatar
Community Moderator
 
Join Date: Mar 2003
Location: Shelby Twp, MI....USA
Posts: 20,454
ger21 is on a distinguished road
Buy me a Beer?

He doesn't know how to use G2 or G3. Adding cutter comp makes it far more complex than he needs, I'd think.
__________________
Gerry

Mach3 2010 Screenset
http://home.comcast.net/~cncwoodworker/2010.html

(Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)
Reply With Quote

  #12  
Old 03-22-2007, 06:51 AM
ger21's Avatar
Community Moderator
 
Join Date: Mar 2003
Location: Shelby Twp, MI....USA
Posts: 20,454
ger21 is on a distinguished road
Buy me a Beer?

What size is the box, and what is the radius of the corners? And what size tool are you using to cut it? Give me this info, and I'll try to explain how to do it.
__________________
Gerry

Mach3 2010 Screenset
http://home.comcast.net/~cncwoodworker/2010.html

(Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)
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
rounded corners jc286006 TurboCAD/CAM 1 06-25-2006 12:04 PM
Letter fonts w/specific radius corners ktuggle General CAM Discussion 0 02-24-2006 10:33 AM
Rounded corners... saturnnights SheetCam 2 02-13-2006 01:06 PM
Round corners slawsonb SheetCam 15 01-26-2006 04:22 PM
Internal corners andy_ck87028 General Material Machining Solutions 3 09-22-2005 09:40 AM




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