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 06-30-2007, 07:19 AM
 
Join Date: Sep 2006
Location: USA
Posts: 17
Josh-PTP is on a distinguished road
G-Code Problem on my Fanuc Oi Hardinge Lathe

Hey guys,

I am having a little problem with a tool nose radius program on my lathe. The tools radius is .031" Here is the part of the program that is giving me problems. I keep getting a 041 alarm. Thanks for any help.......



N1
M98P1
T0101(80 DIAMOND TOOL RADIUS = .031 TOOLNOSE QUADRANT = 3))
G97S800M13
G00X1.4Z.0
G50S2500
G96S600
G99
G01G99X0.F.005
G00Z.1
G00X1.55Z.1
G42X1.45Z.05
G99
G71U.05R.015
G71P100Q200U.03W.01F.005
N100G0X1.0
G01G99Z0.F.005
X1.191,R.03
X1.375Z-.875
Z-1.0
X1.4
N200G0X1.45
G70P100Q200
M98P1



Thanks for any help........
Reply With Quote

  #2   Ban this user!
Old 06-30-2007, 08:07 AM
jorgehrr's Avatar  
Join Date: May 2006
Location: USA
Posts: 203
jorgehrr is on a distinguished road

To turn compensation on, the machine must move at least the distance of the nose radius in X and Z. For easy calculations, back away from the start point 0.1 in Z and 0.2 in X.
To turn compensation off, we feed the cutter completely off the work and then make a move larger than the nose radius while calling G40.

Check your decimal points I see a (,) somewhere in there.

Cheers.
Reply With Quote

  #3   Ban this user!
Old 06-30-2007, 10:53 PM
 
Join Date: May 2007
Location: USA
Posts: 913
g-codeguy is on a distinguished road

Originally Posted by Josh-PTP View Post
Hey guys,

I am having a little problem with a tool nose radius program on my lathe. The tools radius is .031" Here is the part of the program that is giving me problems. I keep getting a 041 alarm. Thanks for any help.......



N1
M98P1
T0101(80 DIAMOND TOOL RADIUS = .031 TOOLNOSE QUADRANT = 3))
G97S800M13
G00X1.4Z.0
G50S2500
G96S600
G99
G01G99X0.F.005
G00Z.1
G00X1.55Z.1
G42X1.45Z.05
G99
G71U.05R.015
G71P100Q200U.03W.01F.005
N100G0X1.0
G01G99Z0.F.005
X1.191,R.03
X1.375Z-.875
Z-1.0
X1.4
N200G0X1.45
G70P100Q200
M98P1



Thanks for any help........
I have a couple questions. 1) Why are you even bothering to use tool nose radius compensation? 2) I see you are using Hardinge safe index programs, so why all the G99 codes? It is modal and should be in the safe index program.

If you got rid of the G42, you could shorten the program by a couple more blocks

Last edited by g-codeguy; 07-01-2007 at 01:26 AM.
Reply With Quote

  #4   Ban this user!
Old 07-02-2007, 07:00 AM
 
Join Date: Jan 2005
Location: USA
Posts: 237
cogsman1 is on a distinguished road
Need G40

I believe if you add a G40 on the N200 line it will run the way you have it written. During a canned cycle it will retract and tool comp doesn't like that.
Reply With Quote

  #5   Ban this user!
Old 07-03-2007, 12:26 PM
 
Join Date: Mar 2006
Location: usa
Posts: 15
xyzer is on a distinguished road

HMMMMM...our Fanucs won't use cutter comp in a canned cycle.

I see a couple of issues, Don't forget the tool type settings and tool radius in the geometry screen. It may be a tad longer but you can see the G42 install and cancel

G0X1.45Z.05
G71U.05R.015
G71P100Q200U.03W.01F.005
N100G0X1.0
G01Z0.
G1X1.137Z0.0
G03X1.1966Z-.0269R.03
"X1.191,R.03(WON'T WORK)" iF IT WAS AT 90 DEG IT WOULD NEED R-.03
G1X1.375Z-.875
Z-1.0
N200X1.45
G0X1.5Z.1
G42X1.45Z.05
G0X1.0
G01Z0.
G1X1.137
G03X1.1966Z-.0269R.03
G1X1.375Z-.875
Z-1.0
X1.45
G0G40X1.5Z.1
Reply With Quote

Sponsored Links
  #6  
Old 07-05-2007, 03:23 AM
tobyaxis's Avatar
Moderator
 
Join Date: Jan 2006
Location: USA
Posts: 4,396
tobyaxis is on a distinguished road

Originally Posted by Josh-PTP View Post
Hey guys,

I am having a little problem with a tool nose radius program on my lathe. The tools radius is .031" Here is the part of the program that is giving me problems. I keep getting a 041 alarm. Thanks for any help.......



N1
M98P1
T0101(80 DIAMOND TOOL RADIUS = .031 TOOLNOSE QUADRANT = 3))
G97S800M13
G00X1.4Z.0
G50S2500
G96S600
G99
G01G99X0.F.005
G00Z.1
G00X1.55Z.1
G42X1.45Z.05
G99
G71U.05R.015
G71P100Q200U.03W.01F.005
N100G0X1.0
G01G99Z0.F.005
X1.191,R.03
X1.375Z-.875
Z-1.0
X1.4
N200G0X1.45
G70P100Q200
M98P1



Thanks for any help........
You need to set the TNR in the Tool Geometry Page and the Tool Tip Designation or your comp won't work. Setting the tool at least 2 times the radius away from the cutting point too.

Originally Posted by xyzer View Post
HMMMMM...our Fanucs won't use cutter comp in a canned cycle.

I see a couple of issues, Don't forget the tool type settings and tool radius in the geometry screen. It may be a tad longer but you can see the G42 install and cancel

G0X1.45Z.05
G71U.05R.015
G71P100Q200U.03W.01F.005
N100G0X1.0
G01Z0.
G1X1.137Z0.0
G03X1.1966Z-.0269R.03
"X1.191,R.03(WON'T WORK)" iF IT WAS AT 90 DEG IT WOULD NEED R-.03
G1X1.375Z-.875
Z-1.0
N200X1.45
G0X1.5Z.1
G42X1.45Z.05
G0X1.0
G01Z0.
G1X1.137
G03X1.1966Z-.0269R.03
G1X1.375Z-.875
Z-1.0
X1.45
G0G40X1.5Z.1
XYZer,

The reason your comp isn't working is one or both of these reasons.

1) Your using a control that is older than 1984.

2) You need to call the TNR Comp in the Canned Cycle or it won't work.

Here is an example:

%
O0086
G0 G40 G97 G99 T0 M5
G28 U0 W0 M9
G50 S2000 M41
M1

N1(REMOVE SKIN/R-FACE/TURN)
G28 U0 W0 T0
T101 M8
G96 S475 M3
G0 G42 X3.99 Z.3
G1 Z-1.3 F.01
X4.05 F.015
G0 G40 X4.1 Z.2
G72 P10 Q15 W.005 D400 F.008
N10 G0 G41 Z0
N15 G1 X0 F.004

G0 G40 X4.0 Z.1
G71 P20 Q25 U.02 W.002 D850 F.01
N20 G0 G42 X1.0
G1 Z0 F.0025
X1.325 F.003
G3 X1.375 Z-.025 R.025 F.0025
G1 Z-.75 F.004
X2.75 F.0035
X3.975 Z-.9141 F.0025
G1 Z-1.08 F.004
N25 X4.1 F.0035

G0 G40 Z.1 M9
G28 U0 W0
G97
T0
M1

N2(F-FACE/TURN/U-CUT)
G28 U0 W0 T0
T303 M8
G96 S650 M3
G0 G41 X1.5 Z0
G1 X0 F.004

G0 G40 X4.1 Z.1
G70 P20 Q25
G0 G40 Z.1

(U-CUT)
G1 X1.3755 Z-.725 F.05
Z-.755 F.004
G4 U1.0
G1 Z-.75 F.006
X2.8 F.003

G0 G40 Z.1 M9
G28 U0 W0 M5
G97
T0
M1

N3(DRILL)
G28 U0 W0 T0
T505 M8
G97 S400 M3
G0 X0 Z.25
G1 Z-2.25 F.0072
Z.05 F.2

G0 G40 Z.1 M9
G28 U0 W0
G97
T0
M1

N4(R-BORE )
G28 U0 W0 T0
T707 M8
G96 S400 M3
G0 G40 X.75 Z.1
G71 P40 Q45 U-.02 W.002 D320 F.0075
N40 G0 G41 X1.214
G1 X.814 Z-.1 F.003
Z-1.3 F.005
N45 X.75

G0 G40 Z.1 M9
G28 U0 W0
G97
T0
M1

N5(F-BORE)
G28 U0 W0 T0
T707 M8
G96 S550 M3
G0 G40 X.75 Z.1
G70 P40 Q45

G0 G40 Z.1 M9
G28 U0 W0
G97
T0

M30
%

BTW: Look at the notes in the Fanuc Manual. It will explain everything.
__________________
Toby D.
"Imagination and Memory are but one thing, but for divers considerations have divers names"
Schwarzwald

(Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)

www.refractotech.com
Reply With Quote

  #7   Ban this user!
Old 07-09-2007, 12:58 PM
 
Join Date: Mar 2006
Location: usa
Posts: 15
xyzer is on a distinguished road

Originally Posted by tobyaxis View Post
Look at the notes in the Fanuc Manual. It will explain everything.
tobyaxis

My problem was I learned on a pre 84 controller and hate reading the manual! Nice detail to know!

I still see somthing wrong with.
X1.191,R.03
X1.375Z-.875

Should be

G03X1.1966Z-.0269R.03
G1X1.375Z-.875

Or it is a new feature with the newer controllers?
I do know the alarm number can say one thing and the problem is something else!

Dave
Reply With Quote

  #8  
Old 07-10-2007, 05:29 AM
tobyaxis's Avatar
Moderator
 
Join Date: Jan 2006
Location: USA
Posts: 4,396
tobyaxis is on a distinguished road

Originally Posted by xyzer View Post
tobyaxis

My problem was I learned on a pre 84 controller and hate reading the manual! Nice detail to know!

I still see somthing wrong with.
X1.191,R.03
X1.375Z-.875

Should be

G03X1.1966Z-.0269R.03
G1X1.375Z-.875

Or it is a new feature with the newer controllers?
I do know the alarm number can say one thing and the problem is something else!

Dave
Some of the Controlers might do this while others won't. It all really depends on the Machine Tool Builder and what they specified as options with their machine.

You might want to call Fanuc, or your machine builder. There could be a Parameter setting that needs to be changed.
__________________
Toby D.
"Imagination and Memory are but one thing, but for divers considerations have divers names"
Schwarzwald

(Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)

www.refractotech.com
Reply With Quote

  #9   Ban this user!
Old 07-10-2007, 10:01 AM
 
Join Date: Nov 2004
Location: USA
Posts: 96
adamant is on a distinguished road

try it like this

N1
M98P1
T0101(80 DIAMOND TOOL RADIUS = .031 TOOLNOSE QUADRANT = 3))
G97S800M13
G00X1.55Z.1
G71U.05R.015
G71P100Q200U.03W.01F.005
N100G0G42X1.0
G01Z0.F.005
X1.191,R.03
X1.375Z-.875
Z-1.0
X1.4
N200G0G40Z.1
G70P100Q200
M98P1


It helps to get rid of the junk.
Reply With Quote

  #10   Ban this user!
Old 07-10-2007, 01:08 PM
 
Join Date: Nov 2004
Location: USA
Posts: 96
adamant is on a distinguished road

Originally Posted by xyzer View Post
tobyaxis

My problem was I learned on a pre 84 controller and hate reading the manual! Nice detail to know!

I still see somthing wrong with.
X1.191,R.03
X1.375Z-.875

Should be

G03X1.1966Z-.0269R.03
G1X1.375Z-.875

Or it is a new feature with the newer controllers?
I do know the alarm number can say one thing and the problem is something else!

Dave
The ,R is correct for his control.

It is used for "blueprint programming"

,A for angle

,C for chamfer.

,R for radius.


Oh yeah and I looked at my P1 program for safe indexing and it had G40 and G99 in it........course I wrote it a long time ago and could not remember what all it had in it.

Anyhows the last line in the G71 cycle should be GOZ.1 instead of an X dim.
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 07-10-2007, 02:19 PM
 
Join Date: Mar 2006
Location: usa
Posts: 15
xyzer is on a distinguished road

Originally Posted by adamant View Post
try it like this

X1.191,R.03

I had to load the program in a newer controller to see if it really worked. My controller doesn't like the "," in the line. alarms 053 I think it was "to many charactures in line"?! I found the "GOZ.1 instead of an X dim".
Reply With Quote

  #12  
Old 07-10-2007, 05:42 PM
tobyaxis's Avatar
Moderator
 
Join Date: Jan 2006
Location: USA
Posts: 4,396
tobyaxis is on a distinguished road

Originally Posted by adamant View Post
The ,R is correct for his control.

It is used for "blueprint programming"

,A for angle

,C for chamfer.

,R for radius.


Oh yeah and I looked at my P1 program for safe indexing and it had G40 and G99 in it........course I wrote it a long time ago and could not remember what all it had in it.

Anyhows the last line in the G71 cycle should be GOZ.1 instead of an X dim.
Don't forget "I+-" and "K+-" for Chamfer Quadrants in 6T Controls.
__________________
Toby D.
"Imagination and Memory are but one thing, but for divers considerations have divers names"
Schwarzwald

(Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)

www.refractotech.com
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
Hardinge threading code Pontiff51 General Metalwork Discussion 3 03-16-2009 11:37 AM
Surfcam to fanuc ot lathe (post problem) ppm620 Post Processor Files 6 01-21-2007 09:55 PM
Hardinge CNC lathe WJ MARK General Metal Working Machines 4 09-29-2006 08:29 PM
fanuc 11 lathe g-code bobcor Fanuc 3 08-20-2006 02:16 PM
Hardinge Lathe jrc347 General Metal Working Machines 9 12-16-2004 07:34 PM




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