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 06-04-2008, 05:05 PM
 
Join Date: Apr 2004
Location: United States
Posts: 25
keencoyote is on a distinguished road
Question Circular pocket & cutter compensation

Hard core software programmer (C++, Objective C), however I am new to CNC and G code.

I am having problems using cutter compensation in a small circular pocket. My challenge is to mill an array of 0.25" circular pockets wilt a 0.188 end mill. I start by setting a radius for my cutter compensation of 0.1 for roughing, my smallest arc uses a radius of 0.1125 which I thought should work however the controller fails. If I set the radius to a small value 0.005" the controller runs with it (of course the pocket becomes too large).

I am testing on a Fadal mill with what I believe to be a level 2 controller.

I can do a workaround, however I would like to know WHY I am having this problem. Below I have a written a sample program which illustrates the issue (excuse the wasted motions at the start, originally I wrote this as a sub program, so this is an adaptation).

%
O5737
N10 G0 G17 G20 G40 G49 G80 G90
N20 G54
N30 T3 M6
N40 S3500 M3
N50 G0 X-2.0 Y-1.0
N60 G0 G43 Z1.0 H3
N70 G1 Z0.1 F50
N80 G0 X0 Y0
N90 G0 X0 Y-0.001
N100 G1 G41 X0 Y0 D3
N110 G1 X0.1 Y0
N120 G1 Z-0.05
N130 G3 X-0.125 Y0 I-0.1125 J0
N140 G3 X-0.125 Y0 I0.125 J0
N150 G3 X0.1 Y0 I0.1125 J0
N160 G1 Z0.1
N170 G1 G40 X0 Y0.001
N180 G0 Z1.0
N190 M5
N200 G0 X-2.0 Y-1.0
N210 G0 G28 G49 G90 Z0
N220 M30
%

Thanks,
- George Lawrence Storm, Kenmore (Seattle), Washington
__________________
George Lawrence Storm, Kenmore (Seattle), Washington
Inventor, Machinist, Macintosh Applications Developer, Videographer
Reply With Quote

  #2  
Old 06-04-2008, 05:58 PM
*Registered*
 
Join Date: Jan 2006
Location: Seattle
Age: 52
Posts: 883
Mike Stevenson is on a distinguished road

keencoyote,

Come to the Puget sound BBQ and I will show you in person:

http://www.cnczone.com/forums/showth...808#post459808

Reply With Quote

  #3  
Old 06-04-2008, 09:27 PM
HuFlungDung's Avatar
Moderator
 
Join Date: Mar 2003
Location: Canada
Posts: 4,825
HuFlungDung is on a distinguished road

N80 G0 X0 Y0
N90 G0 X0 Y-0.001
N100 G1 G41 X0 Y0 D3
N110 G1 X0.1 Y0
I think the problem may arise because your comp on move is too short. If you use a value equal to the tool radius for the G01 G41, then the machine will reckon the tool to be tangent to the path that follows, but no motion will actually occur. If you add an additional G01 move after turning comp on, then you will get motion.

Here is an example with a .030" radius lead in/out, which should keep the tool safely inside the profile.
S3500 M03
G00 X0.0012 Y-0.03 Z0.25
Z0.05
G01 S3500 Z-0.05 F4.5
G41 D3 Y-0.1237 F9.
G03 X0.125 Y0. I0. J0.1238
X-0.125 Y0. I-0.125 J0.
X0.125 Y0. I0.125 J0.
X0.0013 Y0.1238 I-0.1238 J0.
G01 G40 Y0.03
G00 Z0.25
__________________
First you get good, then you get fast. Then grouchiness sets in.

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

  #4   Ban this user!
Old 06-04-2008, 11:52 PM
 
Join Date: Jul 2005
Location: Canada
Posts: 11,564
Geof will become famous soon enough

Originally Posted by keencoyote View Post
.....My challenge is to mill an array of 0.25" circular pockets wilt a 0.188 end mill. I start by setting a radius for my cutter compensation of 0.1 for roughing, my smallest arc uses a radius of 0.1125 which I thought should work
I do not follow your logic here.

You are using a radius of 0.1 for cutter compensation, and this is larger than your tool radius by 0.006 so you leave a finish allowance.

You are milling circular pockets 0.250" diameter so the radius is 0.125" but you use a circle radius of 0.1125.

Surely if you are using an oversize tool radius you should be using the correct size circle radius, in other words 0.125?

This is the way I do it; do a first cut using a cutter compenstaion entry that is larger than the tool radius. Then do a finish cut using the actual tool radius in the compensation.
__________________
An open mind is a virtue...so long as all the common sense has not leaked out.
Reply With Quote

  #5   Ban this user!
Old 06-05-2008, 10:19 AM
 
Join Date: Apr 2004
Location: United States
Posts: 25
keencoyote is on a distinguished road
Circular pocket & cutter compensation - Addendum

I did a few experiments this morning, I found that setting the cutter compensation to .0555 worked, but setting it to .0556 failed.

It appears to be a mathematical limit, however it is occurring before half of the smallest radius, 0.1125 (.05625), so it brings to question if this threshold is specific to the machine or to G code in general.

The funny little jog is working as expected:

N80 G0 X0 Y0
N90 G0 X0 Y-0.001
N100 G1 G41 X0 Y0 D3
N110 G1 X0.1 Y0

The failure is occurring on line:

N130 G3 X-0.125 Y0 I-0.1125 J0

This is occurring on a Fadal CNC88HS control.
__________________
George Lawrence Storm, Kenmore (Seattle), Washington
Inventor, Machinist, Macintosh Applications Developer, Videographer
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 06-05-2008, 12:09 PM
 
Join Date: May 2007
Location: US
Posts: 779
Andre' B is on a distinguished road

I would normally use a G13 for such stuff, if the control does not have that code I would use a sub like this and call it with a G65 or set it up so it is called be a G13.

Note, that the line
#3=[#[2000+#7]+#[2200+#7]](CUTT-COMP)
will need to be changed to match the type and location of the offset table in the control. This example has the cutter radius at a base address of 2000 and the radius wear starting at 2200.

Code:
O1000(MAIN)
G0Z0.1
G0X5.0Y5.0
G1Z-0.1F10.0
G65 P9013 I[0.125-0.002] D2 F10.
G65 P9013 I0.125 D2 F10.
M30

O9013(G13 TYPE MACRO)
IF[#4EQ#0]GOTO810
IF[#7EQ#0]GOTO820
IF[#9EQ#0]GOTO830
#1=#5041(X POS.)
#2=#5042(Y POS.)
#3=[#[2000+#7]+#[2200+#7]](CUTT-COMP)
#5=#4-#3
IF[#5LT0]GOTO840
G3X[#1+#5]Y#2R[#5/2]F#9
G3I-#5
G3X#1Y#2R[#5/2]F[#9*1.5]
GOTO900
N810#3000=10(SPECIFY CIRCLE RADIUS)
N820#3000=20(SPECIFY CUTTER COMP)
N830#3000=30(SPECIFY FEED RATE)
N840#3000=40(CUTTER LARGER THAN DIA)
N900(END)
M99
Reply With Quote

  #7   Ban this user!
Old 06-05-2008, 06:03 PM
 
Join Date: Apr 2004
Location: United States
Posts: 25
keencoyote is on a distinguished road
Re: Circular pocket & cutter compensation

Originally Posted by Geof View Post
I do not follow your logic here.

You are milling circular pockets 0.250" diameter so the radius is 0.125" but you use a circle radius of 0.1125.
The G3's with the 0.1125 radius are to for tangental entry and exit to the final radius cut which has a 0.125" radius.

Originally Posted by Andre' B View Post
I would normally use a G13 for such stuff, if the control does not have that code I would use a sub like this and call it with a G65 or set it up so it is called be a G13.
...
Unfortunatly this control does not support G13. I will try your macro.

Thanks,
- George
__________________
George Lawrence Storm, Kenmore (Seattle), Washington
Inventor, Machinist, Macintosh Applications Developer, Videographer
Reply With Quote

  #8   Ban this user!
Old 06-05-2008, 06:58 PM
 
Join Date: Jul 2005
Location: Canada
Posts: 11,564
Geof will become famous soon enough

Originally Posted by keencoyote View Post
The G3's with the 0.1125 radius are to for tangental entry and exit to the final radius cut which has a 0.125" radius.
Okay, thanks.
__________________
An open mind is a virtue...so long as all the common sense has not leaked out.
Reply With Quote

  #9   Ban this user!
Old 06-06-2008, 03:47 PM
 
Join Date: Aug 2007
Location: usa
Posts: 95
dpark1 is on a distinguished road

Fadal has a sub-routine for circular milling-

L9401 R0+3. R1+.25

The R0+ IS THE FEED THE R1+ IS THE DIAMETER OF THE HOLE
Reply With Quote

  #10  
Old 06-06-2008, 06:22 PM
*Registered*
 
Join Date: Jan 2006
Location: Seattle
Age: 52
Posts: 883
Mike Stevenson is on a distinguished road

Originally Posted by dpark1 View Post
Fadal has a sub-routine for circular milling-

L9401 R0+3. R1+.25

The R0+ IS THE FEED THE R1+ IS THE DIAMETER OF THE HOLE
Brilliant.
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 06-07-2008, 04:41 AM
 
Join Date: Jul 2003
Location: New Zealand
Posts: 1,039
Kiwi is on a distinguished road

Originally Posted by keencoyote View Post
.........I can do a workaround, however I would like to know WHY I am having this problem.......
Originally Posted by keencoyote View Post
I did a few experiments this morning, I found that setting the cutter compensation to .0555 worked, but setting it to .0556 failed..........
..............The failure is occurring on line:
N130 G3 X-0.125 Y0 I-0.1125 J0
I believe the tool path gets crossed (change direction) because of the cutter radius length, the angles and the lengths of the arc increments.
Picture not to scale but shows the ends of the cutter radius not following a path offset to the profile.
Attached Thumbnails
Click image for larger version

Name:	keencoyote.JPG‎
Views:	38
Size:	19.8 KB
ID:	61035  
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
G12/G13 Circular pocket help needed NeoMoses G-Code Programing 8 09-27-2011 02:53 PM
G77 Circular Pocket Big John T BobCad-Cam 3 02-27-2007 10:33 AM
Cutter Compensation? Joe Petro Autodesk Software (Autocad, Inventor etc) 6 03-08-2006 12:04 AM
Cutter compensation? Tonenc G-Code Programing 4 11-02-2005 11:53 PM




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