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 08-29-2009, 01:51 PM
 
Join Date: Jan 2007
Location: USA
Posts: 95
teamjnz is on a distinguished road
cnc lathe canned cycle issues

Hello,

Sorry I posted the original in the wrong forum

I am having troubles... I have been CNC turning parts for years. I buy a used small CNC lathe, 1998 Femco with a Fanuc O-T control. I score a small first job. Now I try and run the machine for the first time and it doesn't like the canned cycles.

Please help... Could it be the a turned off parameter??

The alarm reads 010 P/S. My books says "unusable G code commanded" It bombs out when it reads the G71 line and the G76 line. I can work around the G71 rough cycle but I need to be able to thread the part.

Here is the code
(ROUGH OD PROFILE)
G00X1.Z.03
G71U.1R.015
**G71P1000Q1001U.01W.005F.007
N1000G00X.6794
G01Z-.0059F.02
X.784Z-.044
Z-.465
X.8072
G03X.8892Z-.506R.041
G01Z-.975
X.938
N1001X1.
G0Z1.

and the threading cycle too

(FINISH THREAD)
T0303
G97S1000M03
G00G99X1.Z.25M08
G0X.984Z.2
G76P011060Q0010R0010
**G76X.744Z-.4095R0P0200Q0047F.059
G00X.968Z.2577
G0Z1.


I am drowning.. please help
__________________
__________________
_____________
teamjnz
Reply With Quote

  #2   Ban this user!
Old 08-29-2009, 02:26 PM
 
Join Date: Jun 2005
Location: us
Posts: 210
timlkallam is on a distinguished road

Just a shot in the dark whats the g99 on the lathe used for, could the alarm be because of the g99. The g99 is return to R level for fixed caned cycle . I have never seen a lathe that uses g99. Take out the g99 and see what happens reboot the machine sence g99 is modal.

The R in the g76 code needs a . point
__________________
Tim
Reply With Quote

  #3   Ban this user!
Old 08-29-2009, 03:29 PM
 
Join Date: Jan 2007
Location: USA
Posts: 95
teamjnz is on a distinguished road

Thanks for the input Tim.

G99 for the lathe is feed per revolution and G98 is feed inches per minute. These codes are different for the mill in the canned drilling cycles.

I was able to produce a G92 thread cycle. I am confused why this the G92 cycle works and the G76 does not. The thread relief is small and the G92 starts retracting to soon and doesn't give me full thread before the shoulder.

Any other input would be nice.
__________________
_____________
teamjnz
Reply With Quote

  #4   Ban this user!
Old 08-30-2009, 08:12 AM
 
Join Date: Nov 2006
Location: UK
Posts: 121
ChattaMan is on a distinguished road
G71/76

I don't do turning but I seem to recall reading somewhere that older controls use just a single line input for G71/76.
Don't know the format for the block info but try a "search" for G71 single line input.
Reply With Quote

  #5   Ban this user!
Old 08-30-2009, 08:30 AM
 
Join Date: Nov 2006
Location: UK
Posts: 121
ChattaMan is on a distinguished road
Done a search

O1000(Program number)
N1 G50 S2500(Max speed)
N2 T0101
N3G96 S600 M3(Speed in SFM for 1018 Steel)
N4 G0 X4.0 Z.1 M8(Rapid to OD of part, .1" away from face, turn coolant on)
N5 G71 U.15 R.02(U=cutting depth, R= pullaway distance after each cut)
N6 G71 P7 Q9 U.05 W.005 F.015(P7 tells the control to look at N7 and Q9 to look at N9, this is how we give the motions describing the part.
U is the amount of stock left for finishing on the OD, W is the amount left on the shoulder.
N7 G0 X2.0
N8 G1 Z-1.0
N9 X4.0
N10 G0 X6.0 Z6.0 M9(Rapid back to a position clear of the part, turn coolant off)
N11 M30( End of program)
Notes: The 6T version has a single line and so do various Yasnac controls, they look like this:
N5 G71 P7 Q9 U.05 W.005 D1500 F.015(D= depth of each pass and has to be given as a value
without a decimal point)
This cycle is normally followed by G70( Finish Cycle) after tool change to a finish tool. Rapid to the
same position for the start of the G71, then program G70 P7 Q9.

Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 08-30-2009, 10:27 AM
dcoupar's Avatar  
Join Date: Mar 2003
Location: USA
Posts: 2,312
dcoupar is on a distinguished road

Whether your control uses 1-line or 2-lin multiple repetitive cycles depends on parameter TAPEF (see attached).

1=F10/F11 Format (1-line)
2=F0 Format (2-line)
Attached Thumbnails
Click image for larger version

Name:	0T TapeF Setting.jpg‎
Views:	145
Size:	50.7 KB
ID:	87599  
Reply With Quote

  #7   Ban this user!
Old 02-18-2010, 02:20 PM
 
Join Date: Feb 2010
Location: uk
Posts: 2
bullandbladder is on a distinguished road

I've had this happen. The canned cycles need to be switched on by someone who knows where to look (I had a service engineer with me who had good contacts)
Reply With Quote

  #8   Ban this user!
Old 02-18-2010, 03:13 PM
CNCRim's Avatar  
Join Date: Feb 2006
Location: usa
Posts: 947
CNCRim is on a distinguished road
Angry

Originally Posted by teamjnz View Post
The alarm reads 010 P/S. My books says "unusable G code commanded" It bombs out when it reads the G71 line and the G76 line. I can work around the G71 rough cycle but I need to be able to thread the part.
Since "unusable G code" alarm, I have a feel the machine don't has option G71 to G76. Long hand program is only choice.
__________________
The best way to learn is trial error.
Reply With Quote

  #9   Ban this user!
Old 02-19-2010, 04:08 AM
SanDiegoCNC's Avatar  
Join Date: Jan 2005
Location: USA
Posts: 148
SanDiegoCNC has a little shameless behaviour in the past

Originally Posted by teamjnz View Post
Hello,

Sorry I posted the original in the wrong forum

I am having troubles... I have been CNC turning parts for years. I buy a used small CNC lathe, 1998 Femco with a Fanuc O-T control. I score a small first job. Now I try and run the machine for the first time and it doesn't like the canned cycles.

Please help... Could it be the a turned off parameter??

The alarm reads 010 P/S. My books says "unusable G code commanded" It bombs out when it reads the G71 line and the G76 line. I can work around the G71 rough cycle but I need to be able to thread the part.

Here is the code
(ROUGH OD PROFILE)
G00 X1. Z.03

G71 P1000 Q1001 U.01 W.005 D0.03 F.007

N1000 G00 X.6794
G01 Z-.0059 F.02
X.784 Z-.044
Z-.465
X.8072
G03 X.8892 Z-.506 R.041
G01 Z-.975
X.938
N1001 X1.
G0 Z1.

and the threading cycle too

(FINISH THREAD)
T0303
G97S1000M03
G00G99X1.Z.25M08
G0X.984Z.2
G76P011060Q0010R0010
**G76X.744Z-.4095R0P0200Q0047F.059
G00X.968Z.2577
G0Z1.


I am drowning.. please help
__________________
Try single line G71 canned cycle.

G71 P1000 Q1001 U.01 W.005 D0.03 F.007

What kind of material are you cutting? And the OD tolerance? If its a critical part dimensionally speaking (tenths), I'd run at least two or more passes across the OD, cutting the same amount on each pass. This can be done when you call up the G70 and set your 'U' and 'W' values accordingly.

Example with 3 passes with the G71 U0.009 and W0.003:

G70 P1000 Q1001 U0.006 W0.002 F0.004
G70 P1000 Q1001 U0.003 W0.001
G70 P1000 Q1001 (final dimension, no need to use U or W)

I'll assume that you already know this bit of knowledge but I'll state it anyway for those who are reading this post and may not know... You can put several G70 lines below each other and the machine will not alarm out. This is because it will start at the G71 lap starting point (X1.0 Z0.03) when it reads each G70 line. Hence, no crash.


Now to the threading...

M24 (THREAD TAPER OUT OFF)
(M23 = THREAD TAPER OUT ON)
G76 X0.744 Z-0.4095 K0.000 D0.002 F0.059
(K = MAJOR DIA MINUS MIN DIA / 2)
(D = THREAD DEPTHS OF CUT)
(FEEDRATE = 1 / # OF THREADS)


Hope this helps you out. Let me know how it goes for you.

Patrick
Reply With Quote

  #10   Ban this user!
Old 02-19-2010, 05:47 AM
 
Join Date: Feb 2010
Location: united kingdom
Posts: 3
jamie0579 is on a distinguished road

Originally Posted by SanDiegoCNC View Post
Try single line G71 canned cycle.

G71 P1000 Q1001 U.01 W.005 D0.03 F.007

What kind of material are you cutting? And the OD tolerance? If its a critical part dimensionally speaking (tenths), I'd run at least two or more passes across the OD, cutting the same amount on each pass. This can be done when you call up the G70 and set your 'U' and 'W' values accordingly.

Example with 3 passes with the G71 U0.009 and W0.003:

G70 P1000 Q1001 U0.006 W0.002 F0.004
G70 P1000 Q1001 U0.003 W0.001
G70 P1000 Q1001 (final dimension, no need to use U or W)

I'll assume that you already know this bit of knowledge but I'll state it anyway for those who are reading this post and may not know... You can put several G70 lines below each other and the machine will not alarm out. This is because it will start at the G71 lap starting point (X1.0 Z0.03) when it reads each G70 line. Hence, no crash.


Now to the threading...

M24 (THREAD TAPER OUT OFF)
(M23 = THREAD TAPER OUT ON)
G76 X0.744 Z-0.4095 K0.000 D0.002 F0.059
(K = MAJOR DIA MINUS MIN DIA / 2)
(D = THREAD DEPTHS OF CUT)
(FEEDRATE = 1 / # OF THREADS)


Hope this helps you out. Let me know how it goes for you.

Patrick
jamie0579, simply switch off the tool nose radius compensation command after stock removal G40, then use G33 thread cutting command.Hope this was useful.
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 02-19-2010, 05:52 AM
 
Join Date: Feb 2010
Location: united kingdom
Posts: 3
jamie0579 is on a distinguished road

simply switch off your tool nose radius command ( G40 ), then use G33 thread cutting. G76 is a tapping code not threading you must use G33.Let me know if this was any help as i have encountered this myself,and redited the programme with G33.
Reply With Quote

  #12   Ban this user!
Old 02-19-2010, 06:10 AM
 
Join Date: Feb 2010
Location: united kingdom
Posts: 3
jamie0579 is on a distinguished road

You have too switsh off your tool nose radius compensation command, which is G40 and but also acctivate it at the beginning of your roughing cycle, which is G41, as for the treading cycle try using G33 thread cuttting this is a more stable thread cutting command as G76 is commonly used as a tapping command,please let me know if this was useful.
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
canned cycle for lathe with fanuc control JPann G-Code Programing 6 09-27-2011 12:45 PM
Canned OD cycle? VWbmx Haas Mills 7 06-05-2009 12:17 PM
G76 Canned cycle Stebedeff Fanuc 1 02-07-2008 11:42 AM
Lathe drilling canned cycle cijunet GibbsCAM 4 12-08-2007 04:38 PM
Canned cycle output in Gibbs lathe naytep GibbsCAM 2 08-30-2007 02:38 PM




All times are GMT -5. The time now is 12:21 AM.





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