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-11-2008, 02:17 PM
 
Join Date: Jan 2007
Location: usa
Posts: 56
stuby is on a distinguished road
G71 for Stock Removal

Hello. I have a leadwell LTC-15 with a Fanuc-OT controller. I have used G71 for roughing and G70 to finish in the past, and it has worked well. Now, I am trying to do the same thing, using G71 for Stock Removal in Turning. I enter all of my G-codes, and everytime it begins the cycle, it feeds down to the final cut of the rough ( .01 on Dia, and .005 on faces still remains ) immediately, instead of doing the usual Linear cut. Here is my Code :

G01 Z0.1 X3.8
G71 U0.02 R0.1
G71 P1 Q2 U0.01 W0.005 F0.008
N1 G01
X1.15
G03 X1.25 Z-0.05 R0.05
G01 Z-.425
G02 X1.35 Z-.475 R0.05
G01 X2.90
G03 X3.0 Z-0.525 R0.05
N2 G01 Z-1.41

Thanks for the help, I hope I can figure this out...
Reply With Quote

  #2   Ban this user!
Old 06-11-2008, 02:26 PM
extanker59's Avatar  
Join Date: Mar 2008
Location: USA
Age: 52
Posts: 426
extanker59 is on a distinguished road

Isn't there suposed to be a rapid move between the N1 line and the first feed?
Like maybe:
G01 Z0.1 X3.8
G71 U0.02 R0.1
G71 P1 Q2 U0.01 W0.005 F0.008
N1 G0 X1.15
G1 Z0
G03 X1.25 Z-0.05 R0.05
G01 Z-.425
G02 X1.35 Z-.475 R0.05
G01 X2.90
G03 X3.0 Z-0.525 R0.05
N2 G01 Z-1.41

It's been a couple of years so I may be way off.
Reply With Quote

  #3   Ban this user!
Old 06-12-2008, 12:00 AM
CNCRim's Avatar  
Join Date: Feb 2006
Location: usa
Posts: 947
CNCRim is on a distinguished road

Originally Posted by stuby View Post
Hello. I have a leadwell LTC-15 with a Fanuc-OT controller. I have used G71 for roughing and G70 to finish in the past, and it has worked well. Now, I am trying to do the same thing, using G71 for Stock Removal in Turning. I enter all of my G-codes, and everytime it begins the cycle, it feeds down to the final cut of the rough ( .01 on Dia, and .005 on faces still remains ) immediately, instead of doing the usual Linear cut. Here is my Code :

G01 Z0.1 X3.8
G71 U0.02 R0.1
G71 P1 Q2 U0.01 W0.005 F0.008
N1 G01
X1.15
G03 X1.25 Z-0.05 R0.05
G01 Z-.425
G02 X1.35 Z-.475 R0.05
G01 X2.90
G03 X3.0 Z-0.525 R0.05
N2 G01 Z-1.41

Thanks for the help, I hope I can figure this out...
Try this somehow your program doesn't work right. I think because N1 mess up.
G00 Z0.1 X3.8
G71 U0.02 R0.1
G71 P1 Q2 U0.01 W0.005 F0.008
N1 G0X1.15
G01Z0
G03 X1.25 Z-0.05 R0.05
G01 Z-.425
G02 X1.35 Z-.475 R0.05
G01 X2.90
G03 X3.0 Z-0.525 R0.05
N2 G01 Z-1.41
__________________
The best way to learn is trial error.
Reply With Quote

  #4   Ban this user!
Old 06-12-2008, 07:54 AM
dcoupar's Avatar  
Join Date: Mar 2003
Location: USA
Posts: 2,312
dcoupar is on a distinguished road

It's my understanding that N2 should be an X move back to the starting X. It's never failed when I've done it that way.

G01 Z0.1 X3.8
G71 U0.02 R0.1
G71 P1 Q2 U0.01 W0.005 F0.008
N1 G0 X1.15
G1 Z0
G03 X1.25 Z-0.05 R0.05
G01 Z-.425
G02 X1.35 Z-.475 R0.05
G01 X2.90
G03 X3.0 Z-0.525 R0.05
G01 Z-1.41
N2 G00 X3.8
Reply With Quote

  #5   Ban this user!
Old 06-12-2008, 08:54 AM
 
Join Date: Nov 2004
Location: USA
Posts: 96
adamant is on a distinguished road

Here is how I would do it.

G0 X3.8 Z.1
G71 U0.02 R0.1
G71 P1 Q2 U0.01 W0.005 F0.008
N1G0X1.15
G01Z0F.002
G03 X1.25 Z-0.05 R0.05
G01 Z-.425
G02 X1.35 Z-.475 R0.05
G01 X2.90
G03 X3.0 Z-0.525 R0.05
G1 Z-1.41
X3.8F.01
N2G0Z.1
G70P1Q2

Push the green button
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 06-12-2008, 02:41 PM
 
Join Date: May 2007
Location: USA
Posts: 913
g-codeguy is on a distinguished road

Originally Posted by stuby View Post
Hello. I have a leadwell LTC-15 with a Fanuc-OT controller. I have used G71 for roughing and G70 to finish in the past, and it has worked well. Now, I am trying to do the same thing, using G71 for Stock Removal in Turning. I enter all of my G-codes, and everytime it begins the cycle, it feeds down to the final cut of the rough ( .01 on Dia, and .005 on faces still remains ) immediately, instead of doing the usual Linear cut. Here is my Code :

G01 Z0.1 X3.8
G71 U0.02 R0.1
G71 P1 Q2 U0.01 W0.005 F0.008
N1 G01
X1.15
G03 X1.25 Z-0.05 R0.05
G01 Z-.425
G02 X1.35 Z-.475 R0.05
G01 X2.90
G03 X3.0 Z-0.525 R0.05
N2 G01 Z-1.41

Thanks for the help, I hope I can figure this out...
N1 needs to have an X value. Out of about 25 lathes in our shop that can use this cycle, all but one will run with a G1 in the first block. That one lathe has to have a G0. Probably a parameter. Otherwise your program is fine...with one exception. Why are you retracting so far? My standard is R.01. You're wasting a lot of time cutting air.

You do not need to finish the cycle with an X3.8 unless you want the shoulder to be smooth. I personally wouldn't use a G0 if you did want to.

Using a G0Z.1 in the last block is redundant as the canned cycle will automatically rapid to X3.8Z.1 after it finishes.

What are you machining that the DOCs are so small?
Reply With Quote

  #7   Ban this user!
Old 06-13-2008, 10:41 AM
 
Join Date: Nov 2004
Location: USA
Posts: 96
adamant is on a distinguished road

Originally Posted by g-codeguy View Post
Using a G0Z.1 in the last block is redundant as the canned cycle will automatically rapid to X3.8Z.1 after it finishes.
Hey g-codeguy.

I realize that goz.1 in the qnline is redundant.......

The onley reason I do it is because the guy that tought me on a Hardinge conquest T42 is because he said that not all can cycles on all machines act the same and it is best just to be safe?

My guess is that that you have never seen a machine that did not retract in the can cycle?

So do you always end your QNline with the stock diameter in x?

Thanks
adamant
Reply With Quote

  #8   Ban this user!
Old 06-13-2008, 03:12 PM
 
Join Date: Jun 2008
Location: UK
Posts: 5
ac123 is on a distinguished road

iv worked on a ltc 15, im in work tomoro morning ive got all the g codes still.
i think of the top of my head its on one line

G71P10Q20U.01W.002D200F.004

Note D this is your depth of cut.
then G70P10Q2O for finishing cut.

ill check tomoro at work.
Reply With Quote

  #9   Ban this user!
Old 06-13-2008, 09:51 PM
 
Join Date: May 2007
Location: USA
Posts: 913
g-codeguy is on a distinguished road

Originally Posted by adamant View Post
Hey g-codeguy.

I realize that goz.1 in the qnline is redundant.......

The onley reason I do it is because the guy that tought me on a Hardinge conquest T42 is because he said that not all can cycles on all machines act the same and it is best just to be safe?

My guess is that that you have never seen a machine that did not retract in the can cycle?

So do you always end your QNline with the stock diameter in x?

Thanks
adamant
Nope. Never ran a lathe in 23 years that didn't return to the canned cycle's starting position. That includes an Ikegai, and some Warner & Swaseys that were undoubtedly older than that when I started. Doesn't mean that there couldn't be some out there that don't, tho. I'm only familiar with Hardinge, Mori Seiki, Daewoo, Takisawa, Nakamura-Tome, Hitachi Seiki, Okuma, Yang, CMS, & some converted manual Hardinges with Fagor controls. Lot more brands out there.

As to ending the cycle at stock diameter...sometimes yes, sometimes no. Depends on where the cycle is ending.

BTW, I was only trying to point out that the Z.1 was unnecessary (to the best of my knowledge), not trying to take a dig at you. Or anyone else for that matter.

I try to keep my programs as clean as possible with no extraneous code. Naturally I ass-u-me that everyone else does also. Tain't necessarily true. Witness some programs with a G1 or G0 on almost every line. Now I suppose you are going to tell me that some lathes require it. You could be right.
Reply With Quote

  #10   Ban this user!
Old 08-17-2008, 04:16 PM
 
Join Date: Jan 2004
Location: SCOTLAND
Age: 63
Posts: 171
bbrreid is on a distinguished road

ac123 has the answer you missed out the D for depth of cut on each pass
__________________
BR
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 08-17-2008, 05:28 PM
 
Join Date: May 2007
Location: USA
Posts: 913
g-codeguy is on a distinguished road

Originally Posted by bbrreid View Post
ac123 has the answer you missed out the D for depth of cut on each pass
Never seen a G71 two block call that used a D code. The U.02 in the first G71 block is the depth of cut for each roughing pass.

A single block G71 call is something else.
Reply With Quote

  #12   Ban this user!
Old 08-18-2008, 05:26 PM
 
Join Date: May 2005
Location: England
Posts: 11
swarfmaker is on a distinguished road

Hi Stuby,
code looks fine to me, are you sure you've not got another N1 or N2 line number any where in programme.
Regards
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
Type II G71 Stock Removal on Fanuc 0i-TB lowehardware G-Code Programing 38 05-05-2008 08:50 PM
Type II G71 Stock Removal on Fanuc 0i-TB lowehardware G-Code Programing 1 01-08-2008 05:55 PM
fast stock removal on steel dynamotive General Metalwork Discussion 11 02-01-2007 09:02 PM
head stock and tail stock chucks mocnc DIY-CNC Router Table Machines 3 10-19-2004 09:16 PM
Fanuc 0T Stock Removal Cycles M@T General CAM Discussion 4 11-01-2003 06:43 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