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 10-25-2011, 08:24 PM
 
Join Date: Oct 2011
Location: USA
Posts: 4
Zagadka60 is on a distinguished road
Trouble with Multiple Retracts on Peck drill cycles

Hi, I'm a little new to all this, so if my terminology or placement is stupid, let me know.

I work on a Haas mini mill, using NX7.5 to make my code. all the parts i make are fairly irregular bodies, single part, double sided. One of the things i always need is a hole array in the part, usually offset from the edges by a bit, and so on. i've figured out how to set up the holes specifically in the part, and assign them to be cut, but currently, my machine only reads the first retract plane and ignores the rest, leading to it crashing. i've got a few solutions for this, none of which are particularly elegant. I'm wondering if there's a mill setting to recognize additional retract planes, or, alternately, if i need to rewrite my post.

Thanks in advance!
Reply With Quote

  #2   Ban this user!
Old 10-25-2011, 08:47 PM
 
Join Date: Jan 2005
Location: USA
Posts: 2,348
mactec54 is on a distinguished road
Buy me a Beer?

Zagadka60

Post the code you are trying to use, we will have a better idea of what may be happening, G83 or G73 work fine on the Haas machines
__________________
Mactec54
Reply With Quote

  #3   Ban this user!
Old 10-25-2011, 09:24 PM
 
Join Date: Jul 2005
Location: Canada
Posts: 11,563
Geof will become famous soon enough

You need to check that your CAM output has G98 Initial Point Return, not G99 R Plane Return and also make sure it has not included a move close to the surface just before the drill cycle.
__________________
An open mind is a virtue...so long as all the common sense has not leaked out.
Reply With Quote

  #4   Ban this user!
Old 10-26-2011, 10:02 AM
 
Join Date: Oct 2011
Location: USA
Posts: 4
Zagadka60 is on a distinguished road

Here's some of the code i've been using, as far as i can tell, it looks appropriate to what you're saying, but i'm not certain now. I'm thinking maybe my post has some problems on this front.

G40 G17 G90 G70
T07 M06
M01
G1 X4.3448 Y2.5955 F200. S5500 M03
G43 G0 Z-.4133 H07
G83 Z-.8901 R-.4133 F30. Q.0197
G83 X3.6312 Y2.2628 Z-.5137 R-.0503 Q.0197
G83 X2.9175 Y1.93 Z-.3317 R-.0018 Q.0197
G83 X2.2039 Y1.5972 Z-.6642 R-.2381 Q.0197
G83 X1.4903 Y1.2645 Z-.9671 R-.5757 Q.0197
G83 X1.1575 Y1.9781 Z-.9518 R-.5255 Q.0197
G83 X1.8711 Y2.3108 Z-.6142 R-.1897 Q.0197
G83 X2.5848 Y2.6436 Z-.4385 R-.0224 Q.0197
G83 X3.2984 Y2.9764 Z-.747 R-.1662 Q.0197
G83 X2.252 Y3.3572 Z-.8812 R-.3656 Q.0197
G83 X1.5384 Y3.0245 Z-.9807 R-.4105 Q.0197
G83 X.8247 Y2.6917 Z-1.1633 R-.6297 Q.0197
G80
M05
G28

It seems to ignore the R call after the first one. in this case, the move after the first hole crashed into the part.

Thanks for your replies.

Last edited by Zagadka60; 10-26-2011 at 10:05 AM. Reason: Clarity
Reply With Quote

  #5  
Old 10-26-2011, 10:13 AM
Al_The_Man's Avatar
Community Moderator
 
Join Date: Dec 2003
Location: Canada
Posts: 16,539
Al_The_Man is on a distinguished road
Buy me a Beer?

Not sure if this helps in this case, but something that may prove useful at some time.
Al.
Attached Thumbnails
Click image for larger version

Name:	Drill_peck_macro.jpg‎
Views:	59
Size:	89.9 KB
ID:	144773   Click image for larger version

Name:	Drill_peck_macro2.jpg‎
Views:	38
Size:	83.9 KB
ID:	144774  
__________________
CNC, Mechatronics Integration and Machine Design.
“Logic will get you from A to B. Imagination will take you everywhere.”
Albert E.
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 10-26-2011, 10:17 AM
 
Join Date: Oct 2011
Location: USA
Posts: 4
Zagadka60 is on a distinguished road

That's close, but i don't have a regular enough surface to get a regular formula out of it. thanks though! If i'm reading that right, it lets you mathematically progress through the holes, and i'm mostly working with surfaced facet bodies. if i'm reading that completely wrong, let me know.
Reply With Quote

  #7   Ban this user!
Old 10-26-2011, 10:47 AM
 
Join Date: Jan 2005
Location: USA
Posts: 2,348
mactec54 is on a distinguished road
Buy me a Beer?

Zagadka60

You Have to have in this case a G99 to actervate the R value
So you need it to be G83G99-------

A G98 does not use the R set value It will return the Z to it's set hight in the program which you dont have one you have all negitive Z settings & R values so need a G99
Attached Files
File Type: txt Test Drill-2.txt‎ (73 Bytes, 19 views)
__________________
Mactec54
Reply With Quote

  #8   Ban this user!
Old 10-26-2011, 10:54 AM
 
Join Date: Oct 2011
Location: USA
Posts: 4
Zagadka60 is on a distinguished road

Brilliant! that's exactly what i was looking for, Mactec54, you're wonderful. thanks a million.
Reply With Quote

  #9   Ban this user!
Old 10-28-2011, 03:15 AM
 
Join Date: Feb 2006
Location: india
Posts: 1,187
sinha_nsit is on a distinguished road

Originally Posted by Zagadka60 View Post
...
G1 X4.3448 Y2.5955 F200. S5500 M03
G43 G0 Z-.4133 H07
G83 Z-.8901 R-.4133 F30. Q.0197
G83 X3.6312 Y2.2628 Z-.5137 R-.0503 Q.0197
G83 X2.9175 Y1.93 Z-.3317 R-.0018 Q.0197
...
Logically, R-point should lie below the initial tool level (Z-position).
Therefore, change Z-.4133 to, say, Z.05 (I am assuming that Z0 lies on the top surface of the workpiece).
Moreover, if the R-point in below the top surface, you need to retract up to initial tool level (use G98).
Reply With Quote

  #10   Ban this user!
Old 10-28-2011, 07:01 AM
 
Join Date: Jan 2005
Location: USA
Posts: 2,348
mactec54 is on a distinguished road
Buy me a Beer?

sinha_nsit

I think you miss understand what Zagadka60 is trying to do

Each R value is clearance too the next hole, So to actervate the R he needs to use a G99

His hole starting points are at different heights

He could do with a seperate G0Z3. at the end of the program, the G28 could move all 3 axes at the same time & he could crash into something before the tool is clear
__________________
Mactec54
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 10-29-2011, 02:56 AM
 
Join Date: Feb 2006
Location: india
Posts: 1,187
sinha_nsit is on a distinguished road

I thought Haas is nearly same as Fanuc. So, what I said may not apply on Haas.
Moreover, I have possibly not clearly understood what Zagadka60 is trying to do.
Reply With Quote

  #12   Ban this user!
Old 10-29-2011, 06:49 AM
 
Join Date: Sep 2010
Location: Australia
Posts: 733
angelw is on a distinguished road

Originally Posted by sinha_nsit View Post
I thought Haas is nearly same as Fanuc. So, what I said may not apply on Haas.
Moreover, I have possibly not clearly understood what Zagadka60 is trying to do.
Hi Sinha,

You're correct in that the HAAS G83 cycle is nearly the same as the Fanuc cycle, but with a few more features. The HAAS G83 cycle also has the following features that are not available in the Fanuc equivalent

I Size of first peck depth (if Q is not used)
J Amount reducing each peck after first peck depth (if Q is not used)
K Minimum peck depth (if Q is not used)
P Dwell time at Z-depth

HAAS also has a setting (setting 52) that allows a distance to be set above the R plane for the tool to retract to after each peck. This allows the R plane to be set close to the work surface, yet has the drill retract well clear of the hole for better swarf evacuation. The difference being is that the drill will Rapid from the Initial Level to the R plane set close to the work surface, thus not cutting a lot of fresh air, but when it retracts after each peck, it does so to whatever value is set in Setting 52 above the R plane.

G98 and G99 work in the same way as the Facuc control. Both are model G codes, with G98 being the default.

What you stated in your penultimate post would have worked, particularly with a an irregular surface. Setting an initial level above the highest point of the irregular surface, and using G98 would ensure that the tool would clear any obstacle when moving between holes, and the individual R planes could be included in each hole definition so that excessive air cutting did not occur.

Effectively, the OP has an initial level that is lower than most of the R planes. Because he initially omitted both G98 and G99, the default G98 would have forced the tool to return to Z-0.4133 before moving to the next hole location. Given that the initial level is lower than all bar 3 of the Zagadka60's R plane coordinates, and his comments in the original post regarding crashing, the drill must still be below the top surface of at least some of the holes. In my opinion using G99 as a fix is a bit of a Fudge, and your suggestion is the more appropriate and elegant resolve.


Regards,

Bill

Last edited by angelw; 10-29-2011 at 09:27 PM.
Reply With Quote

Reply

Tags
crash, mini mill, peck drilling, problem




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
G83 Peck Drill on Fanuc 18-T JerryH G-Code Programing 27 06-12-2011 07:32 PM
Need Help!- What do I need to peck drill in wood? 777funk BobCad-Cam 1 02-12-2011 12:19 PM
different peck cycles? C5turbo Fanuc 9 11-06-2008 05:03 AM
To Peck drill or not to peck dril..... Crashmaster General Metalwork Discussion 20 08-23-2008 11:33 AM
Peck Cycles and Simulate bill south BobCad-Cam 7 12-25-2006 05:06 PM




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