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-03-2008, 07:03 PM
 
Join Date: Dec 2007
Location: USA
Posts: 12
Diggs is on a distinguished road
Incremental circle milling sub program

This should be an easy question for some of you but I had a hard time today writing a short sub-program trying to rough mill a 1/2" hole to .950 in a hole pattern. We have a new VMC but haven't chosen a CAM package yet so it is finger cam for now and I have not done alot of this. I want it to use cutter comp, have 2 depths of cut (.500 each), and be incremental(so I can go to the locations and run the sub). I was using a 1/2 rough mill in 304SS. I could do it without cutter comp no problem, but I want cutter comp. I was either on the wrong side of the cut, or it wasn't making a full circle, or just wouldn't compute(error). It was driving me nuts. I was trying to use g41 and g03 for cutter comp left and counter clockwise rotation (climb milling) but I finally gave up. I finished writing it without cutter comp and will run it tommarrow unless someone here can enlighten me. Any help would be greatly appreciated.
Reply With Quote

  #2   Ban this user!
Old 01-03-2008, 07:21 PM
gar gar is offline
 
Join Date: Mar 2005
Location: USA
Posts: 1,498
gar is on a distinguished road

080103-2016 EST USA

Diggs:

If you have a HAAS machine and it is in Fanuc or HAAS mode, then you can use G52 to create a child coordinate system relative to your current G5x base. Doing this you can work in absolute instead of incremental. Since HAAS in either of these modes is a derivative of Fanuc you should be able to do the same thing in Fanuc.

.
Reply With Quote

  #3   Ban this user!
Old 01-03-2008, 07:32 PM
 
Join Date: Dec 2007
Location: USA
Posts: 12
Diggs is on a distinguished road

G52 to create a child coordinate system? hmmm sounds interesting, I'll have to consult the manual about that. I am using a Fanuc Oi.
Reply With Quote

  #4   Ban this user!
Old 01-03-2008, 10:52 PM
cnc-king's Avatar  
Join Date: Jul 2003
Location: united states
Posts: 232
cnc-king is on a distinguished road

check this thread out some interesting info here on milling a hole

http://www.cnczone.com/forums/showthread.php?t=46754
__________________
If you can ENVISION it I can make it
Reply With Quote

  #5   Ban this user!
Old 01-04-2008, 09:16 AM
 
Join Date: Mar 2005
Location: Silicon Valley, CA
Posts: 982
psychomill is on a distinguished road

An incremental sub with comp shouldn't be a problem though... without having to resort to using G52. Post your code Diggs.... Let's see what you've got...
__________________
It's just a part..... cutter still goes round and round....
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 01-04-2008, 09:30 AM
 
Join Date: Jul 2005
Location: Canada
Posts: 11,564
Geof will become famous soon enough

[QUOTE=psychomill;388344... without having to resort to using G52...[/QUOTE]

Whadda ya mean? "resort to"? For us enlightened ones G52 is the preferred choice.
__________________
An open mind is a virtue...so long as all the common sense has not leaked out.
Reply With Quote

  #7   Ban this user!
Old 01-04-2008, 10:13 AM
 
Join Date: Mar 2005
Location: Silicon Valley, CA
Posts: 982
psychomill is on a distinguished road

I knew that would get someone's attention... either you or GAR...

All kidding aside, there's no reason why what he's doing won't work. I use to do it all the time... Then I might shift the entire operation by G52 while using incremental subs.... but thats another story. Just curious to see his posted code since it should work.... just may not be picking up something correctly..

__________________
It's just a part..... cutter still goes round and round....
Reply With Quote

  #8   Ban this user!
Old 01-04-2008, 11:12 AM
 
Join Date: Dec 2007
Location: USA
Posts: 12
Diggs is on a distinguished road
Unhappy

OK, I already made the parts without cutter comp using something to the effect of:

G01X-.225Y0
G03I.225

I had already trashed my program I was attempting yesterday but today I was trying something else today afterwards and getting errors again whenever I tried to introduce cutter comp. Here is what I have that works without the G41 & D5(but cuts .500 too big obviously). I go to the position over the .500 hole and M98 P7001;

:7001
(CIRCULAR HOLE SUB)
N010G90Z.1
N020G01Z-.463F10
N030G03G91X.475Y0R.2375F4
N040G03I-.475
N050G03X-.475Y0R.2375

this is just the beginning of sub but far enough to go no further.

If I put the G41D5 in the first G03 line I get an error:
034 NO CIRC ALLOWED IN ST-UP /EXT BLK

If I put it in the G01Z move above it, I get the error:
020 OVER TOLERANCE OF RADIUS ERROR

These are the same gdamn errors I was getting yesterday using all X,Y,I,J in the G03 lines
Reply With Quote

  #9   Ban this user!
Old 01-04-2008, 11:38 AM
 
Join Date: Jul 2005
Location: Canada
Posts: 11,564
Geof will become famous soon enough

Originally Posted by Diggs View Post
If I put the G41D5 in the first G03 line I get an error:
034 NO CIRC ALLOWED IN ST-UP /EXT BLK(
As far as I am aware you are not allowed to set tool comp, G41 or G42, on an interpolated move only on a G00 or G01.


With the tool in position over the hole and Z zero at the surface of the part my code would be;

G91G41D05G00Y0.475Z0.0
G03I0.J-0.0475Z-0.05F(whatever)L10
G03I0.0J-0.475L2
G40G01Y-0.475
G90G00Z1.0

This code might leave a witness mark because the G01 to cancel comp has the cutter stopping and then moving away on a radial line. To avoid this you could use;

G91G41D05G00Y0.475Z0.0
G03I0.J-0.0475Z-0.05F(whatever)L10
G03I0.0J-0.475L2
G03X0.0Y-0.9I0.0J-0.45
G40G01Y0.425
G90G00Z1.0

This has the cutter moving away on a smaller circle tangent to the bore before the tool comp cancellation so it does not come to a full stop in contact with the work.

I think my numbers are correct, I haven't run this through my simulator.
__________________
An open mind is a virtue...so long as all the common sense has not leaked out.
Reply With Quote

  #10   Ban this user!
Old 01-04-2008, 12:22 PM
 
Join Date: Dec 2007
Location: USA
Posts: 12
Diggs is on a distinguished road

I just tried those and both were similar in that the first circle was above the hole and the others was correct(around the hole). I ran them to scratch cut a piece of aluminum, and they gave me a figure eight pattern with a little ramping in. I also had to take out that G00 in the first line or it would have rapided into the material had I been in the hole.

I am leaving work now so I wont be able to try anything till monday.

I appreciate the efforts though. We'll (I'll) get it eventually. thanks
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 01-04-2008, 04:42 PM
 
Join Date: Jul 2005
Location: Canada
Posts: 11,564
Geof will become famous soon enough

I have to hang my head in shame and apologise I was way too sloppy with some J-0.0475s which should have been J-0.475 and other things not quite correct.

This below does work on my Haas; one hole located at the G54 work zero, one 2 inches away, both using incremental for the hole. First hole does the radial entry and exit and second hole does the tangential exit before cancelling tool comp.

I hope I have redeemed myself.

%
O00000
G17 G20 G40 G49 G80 G90 G98
G10 L12 G90 P5 R0.5
T5 M06
G43 H05
M03 S10000
G90 G54 G00 X0. Y0. Z1.
Z0.01 M08
G91 G41 D05 G00 Y0.475 Z0.
G03 I0. J-0.475 Z-0.051 F100. L10
G03 I0. J-0.475 L2
G40 G01 Y-0.475
G90 G00 Z1.
G90 G54 G00 X-2. Y0.
Z0.01
G91 G41 D05 G00 Y0.475 Z0.
G03 I0. J-0.475 Z-0.051 F100. L10
G03 I0. J-0.475 L2
G03 X0. Y-0.9 I0. J-0.45
G40 G01 Y0.425
G90 G00 Z1.
M30
%
__________________
An open mind is a virtue...so long as all the common sense has not leaked out.
Reply With Quote

  #12   Ban this user!
Old 01-04-2008, 04:55 PM
 
Join Date: Dec 2007
Location: USA
Posts: 12
Diggs is on a distinguished road

Well I will be sure to give it a try and reply back as soon as I do. Most likely I will have to do some actual work during the first part of next week before I can find some time to "figure stuff out" but I will asap. Your efforts are much appreciated.
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
Switch to Incremental moldmker BobCad-Cam 3 10-06-2007 09:43 AM
Circle Calc Program Al_The_Man G-Code Programing 5 06-14-2007 06:50 PM
milling a circle osomaker Fadal 7 08-13-2006 08:04 PM
Incremental encoder mihan General Electronics Discussion 3 09-10-2005 04:21 PM
Milling a Circle rcazwillis General Metalwork Discussion 15 04-19-2005 08:21 AM




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