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 > Fanuc


Fanuc Discuss Fanuc controllers here!


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 03-15-2011, 04:37 PM
 
Join Date: Mar 2011
Location: usa
Posts: 7
bilbo2 is on a distinguished road
how to rapid in a hole then peck drill coming out of the hole to clear

My question... How do you program a peck drill cycle that starts at the bottom of a hole?

I have an Okuma control where I can do this in one line:
G73 X0 Z-2(feed distance) K-.95(rapid in distance) L.05(retract to start position after this amount) D.05(peck amount)

This line will rapid to z-.95, then drill z-.05 more, retract to start position, rapid back within parameter setting of previous depth, then repeat this sequence until Z distance is met.

What is the best way to do this on a fanuc lathe?
Thanks
Reply With Quote

  #2   Ban this user!
Old 03-15-2011, 09:43 PM
 
Join Date: Jun 2008
Location: United States
Posts: 1,507
stevo1 is on a distinguished road

To the best of my knowledge you can not do this on a fanuc lathe with a standard canned cycle. You will have to either long hand the code or write a macro.

Stevo
Reply With Quote

  #3   Ban this user!
Old 03-15-2011, 11:33 PM
 
Join Date: Feb 2006
Location: india
Posts: 1,187
sinha_nsit is on a distinguished road

The closest is Back Boring Cycle (G87) for a single-point tool, but it has continuous feed and available on milling machines only.
Reply With Quote

  #4   Ban this user!
Old 03-16-2011, 06:40 AM
christinandavid's Avatar  
Join Date: Aug 2009
Location: New Zealand
Posts: 573
christinandavid is on a distinguished road

Program each peck as a separate drilling cycle?

DP
Reply With Quote

  #5   Ban this user!
Old 03-16-2011, 08:25 AM
 
Join Date: Mar 2011
Location: usa
Posts: 7
bilbo2 is on a distinguished road

christinandavid Program each peck as a separate drilling cycle?


I have been using this method, and was hoping that someone had a better method...

Does anyone know how to do something like this in a macro?
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 03-16-2011, 04:57 PM
christinandavid's Avatar  
Join Date: Aug 2009
Location: New Zealand
Posts: 573
christinandavid is on a distinguished road

Lets say you start at Z-100 and want to drill to Z-200 in 5mm pecks...

#1=100.
WHILE[#1LT200.]DO1
G0Z[#1+1.]
G1Z[#1-5.]F100
G0Z0.
#1=#1+5.
END1

Of course, you could go further and make it as easy to alter as a pecking cycle if you feel the need. Let us know if you need that flexibility.

DP
Reply With Quote

  #7   Ban this user!
Old 03-16-2011, 05:49 PM
 
Join Date: Mar 2011
Location: usa
Posts: 7
bilbo2 is on a distinguished road

This sounds like it might work. Can you please explain each line for me?
Why do you start with a positive 100 value for #1?

Could you explain how to make it as easy to alter as a peck cycle?

Thank you for your response!
Reply With Quote

  #8   Ban this user!
Old 03-16-2011, 10:13 PM
 
Join Date: Feb 2006
Location: india
Posts: 1,187
sinha_nsit is on a distinguished road

Originally Posted by bilbo2 View Post
My question... How do you program a peck drill cycle that starts at the bottom of a hole?

I have an Okuma control where I can do this in one line:
G73 X0 Z-2(feed distance) K-.95(rapid in distance) L.05(retract to start position after this amount) D.05(peck amount)

This line will rapid to z-.95, then drill z-.05 more, retract to start position, rapid back within parameter setting of previous depth, then repeat this sequence until Z distance is met.

What is the best way to do this on a fanuc lathe?
Thanks
For some strange reason, I thought you want to drill by advancing (pecking) in positive Z-direction! You perhaps want to drill from, say, Z-100 to Z-200, and want to avoid pecking up to Z-100. If so, this can be very easily done by manipulating the R-point. Pecking would start from R-point.

From a book:

Position of R-point
In G-code system B and C, depending on certain parameter settings, R would either always be incremental distance from the initial level (irrespective of G90/G91), or it can be either absolute coordinate or incremental distance from the initial level (depending on G90 and G91, respectively). In system A, which we are following, this is again parameter dependent; it can be either absolute coordinate or incremental distance from the initial level. Since parameter settings are going to vary on different machines, the best way would be to execute a program on the machine, in a safe working zone, to find out whether R is absolute or incremental. Another way would be to set the parameter 5102#6 to 0, which would force R to always be the incremental distance from initial level, in all the three G-code systems. The incremental distance would always be negative in this case.

Another issue regarding its value, in side drilling (in front drilling, it is always the actual distance), is that whether it would be a diameter value (in diameter programming) or a radius value (even in diameter programming), depending on parameters. Therefore, either conduct an experiment on the machine to find out what it is, or set parameter 5102#7 to 0 which would always force it to be a radius value.
Reply With Quote

  #9   Ban this user!
Old 03-17-2011, 06:57 AM
christinandavid's Avatar  
Join Date: Aug 2009
Location: New Zealand
Posts: 573
christinandavid is on a distinguished road

Sinha, I believe the need is to retract beyond the R-point in this case, ie back to the I-point as such. I would be surprised if a G83 could be defined in a way that produces this result. Saying that, I've never had the need to try it...

Please be aware bilbo that I have no idea regarding the difference in capabilities between your control and mine, but this would be my more flexible approach (my first example was simplified to portray the concept): -

In your main program: -

G0 G90 X0 (Or whatever command puts your drill in position)
#1=? (Input your Retract Z)
#2=? (Input your Start Drilling Z)
#3=? (Input your Final Z Depth)
#4=? (Input your Peck)
#5=? (Input your Feed)

WHILE[#2GT#3]DO1 (Pecking Loop Start)
#6=#2-#4 (Current Peck Depth)
IF[#6LT#3]THEN #6=#3 (Sets Peck Depth to Final Depth if it overshoots)
G0 Z#2+1. (stands off a mil)
G1 Z#6 F#5
G0 Z#1
#2=#2-#4 (Resets Hole Depth for next pass)
END1 (Pecking Loop End)

Pgm continues once depth is reached.....

Notice that this example is a little more foolproof than the previous example. The next step would be to save the loop in a separate program and set up a G-code to call that program from your main programs. Basically you input the G code value into a parameter then create a program with a number that relates to that parameter. I'm sure someone will chip in to the conversation with the exact parameters and procedure for you.

You could, for example, call the program with a G183 R? Z? Q? C? F?
Where R is your Drilling start position, Z is your final Drill position, Q is your peck, C is your Clearance Retract Position and F is your Feed. To use particular letters for each variable you need to ensure the #numbers in the cycle correspond to those letters (it's not a perfectly alphabetical sequence) - in this example your separate cycle would therefore look like this: -

%
O9??? (Deep Drill Cycle)

WHILE[#18GT#26]DO1 (Pecking Loop Start)
#7=#18-#17 (Current Peck Depth)
IF[#7LT#26]THEN #7=#26 (Sets Peck Depth to Final Depth if necessary)
G0 Z#18+1.
G1 Z#7 F#9
G0 Z#3
#18=#18-#17 (Resets Hole Depth for next pass)
END1 (Pecking Loop End)

M99 (Return to main program)
%

The next step would be to put in some safety logic to flag any crazy/backwards instructions and prevent them being carried out.

DP
Reply With Quote

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

Originally Posted by christinandavid View Post
Sinha, I believe the need is to retract beyond the R-point in this case, ie back to the I-point as such.
From a book:

Final retraction after hole machining
There is some difference in the way these cycles are commanded/behave in different G-code systems. The description here refers to system A. System-B and system-C cycles are similar to canned cycles on milling machines, with provision for selection between R-point retraction and initial-level retraction with G99 and G98, respectively. In system A, the final retraction is up to the initial level, if parameter 5161#1 is set to 0 (its default value). When this parameter is set to 1, the final retraction is up to the R-point.
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 03-18-2011, 03:08 AM
christinandavid's Avatar  
Join Date: Aug 2009
Location: New Zealand
Posts: 573
christinandavid is on a distinguished road

I think he needs to retract fully beyond the point at which he wants to start drilling at each peck.

I think your article is referring to retract behaviour after completion of canned cycle (ie between hole positions).

Of course I can only vouch for the behaviour of the machining centre I currently operate...I dont know lathes...thankfully.

DP
Reply With Quote

  #12   Ban this user!
Old 03-18-2011, 04:07 AM
 
Join Date: Feb 2006
Location: india
Posts: 1,187
sinha_nsit is on a distinguished road

Originally Posted by christinandavid View Post
I think he needs to retract fully beyond the point at which he wants to start drilling at each peck.
This can be done by calling the drilling cycle repeatedly without a Q-word for each cutting depth till the bottom is reached.

Originally Posted by christinandavid View Post
I think your article is referring to retract behaviour after completion of canned cycle (ie between hole positions).
DP
Yes.

We are discussing for somebody who does not appear to be much interested!
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
Need Help!- How to ream hole with no drill baby, drill tome9999 BobCad-Cam 2 03-04-2011 10:09 PM
G83 won't rapid to the bottom of hole? FASTSemi Haas Mills 7 06-05-2009 12:28 PM
NEWBIE HELP>> How do you input a drill hole or extrude a hole that is.. l u k e Solidworks 9 02-11-2008 10:54 AM
Spade Drill Does Work in Aluminum; Big Hole Boring on Drill Press. Geof General Metalwork Discussion 47 02-01-2008 01:32 PM
How would you drill this hole. Loading General Metalwork Discussion 11 10-05-2006 12:00 AM




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