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 09-27-2011, 09:10 PM
 
Join Date: Sep 2011
Location: United States
Posts: 8
CNCALLthethings is on a distinguished road
Error 065 Illegal Command in G71-G73

Working on a simple profile canned program.
O0072;
G20;
T0301;
G0 X.55 Z0.;
G20 S1000 M03;
G71 W.005 R.5;
G71 P101 Q102 U.02 W.005 F0.005; (Error)
N101 G01 Z-1.5;
X.48;
Z-1.0;
X.375;
Z-.5;
X.25;
N102 Z.25;
M30;
%


Im getting an error 065 "Illegal Command in G71-G73" at the line specified with (error)

Any ideas on what this is about? I'm fairly new to writing G-Code, but have experience working with CNC mills and lathes.

Our Machine is a Hardinge Cobra 42 with a Fanuc 21T Controller

Last edited by CNCALLthethings; 09-27-2011 at 09:19 PM. Reason: Unfinished code
Reply With Quote

  #2   Ban this user!
Old 09-27-2011, 09:24 PM
 
Join Date: May 2004
Location: United States
Age: 48
Posts: 2,217
txcncman is on a distinguished road

Try:

O0072;
G20;
T0301;
G0 X.55 Z0.;
G20 S1000 M03;
G71 W.005 R.5;
G71 P101 Q102 U.02 W.005 F0.005; (Error)
N101 G00 Z-1.5;
G01 X.48;
Z-1.0;
X.375;
Z-.5;
X.25;
N102 Z.25;
M30;
%
__________________
http://www.kirkcon.com/
Reply With Quote

  #3   Ban this user!
Old 09-27-2011, 10:45 PM
 
Join Date: Sep 2010
Location: Australia
Posts: 733
angelw is on a distinguished road

Originally Posted by CNCALLthethings View Post
O0072;
G20;
T0301;
G0 X.55 Z0.;
G20 S1000 M03;
G71 W.005 R.5;
G71 P101 Q102 U.02 W.005 F0.005; (Error)
N101 G01 Z-1.5;
X.48;
Z-1.0;
X.375;
Z-.5;
X.25;
N102 Z.25;
M30;
%
The W address should be "U" in the first G71 block.
In the G71 two block format U is used in the X Z plane, W in the Y Z plane and V in the X Y plane.

Note also that the value you have specified in you example for W in the first G71 block is depth of cut and the R is the retract amount at the end of each roughing cut. Notwithstanding that the W address is wrong, the values you have specified for W and R would result in a 0.005 depth of cut and a 0.5 retract respectively.

Also N101 G01 Z-1.5 should have an X move, as G71 is roughing in the Z axis. You can have X and Z in the first block and this will use G71 Type II cycle. Programming X (U) only will use G71 Type I. Z alone in the block referenced by P in the 2nd G71 will cause an error. The actual meaning of alarm 65 is that in the first block of the shape program specified by P in the repetitive canned cycle G70 to G73, G00 or G01 was not specified. There are many occasions when Fanuc alarm can occur for other reasons that are connected in some way to their desired error trap. Given that in your example program you show G00 specified in the first block, this lends weight to the error being in the first block but in the form of the Z and no X move.

It appears that you are roughing away from the chuck in a Z+ direction, starting at an X diameter larger than the finish diameter. In this case I believe the shape you have programmed is illegal, even when using G71 Type II cycle (pocketing). In the G71 cycle, the tool will return to the start point defined by the Z coordinate prior to the G71 cycle being launched. Accordingly, the cycle would return the tool to Z0.0 between cuts if your example program were to work at all. Why do you not start at Z0.25 and rough towards the chuck?

Something like the following.

G0 X0.55 Z0.25;
G71 U0.10 R0.02;
G71 P101 Q102 U.02 W.005 F0.005; (Error)
N101 G00 X0.25;
G01 Z-0.50;
X0.375;
Z-1.00;
X0.48;
Z-1.50;
N102 X0.55;


Regards,

Bill

Last edited by angelw; 09-28-2011 at 05:53 AM.
Reply With Quote

  #4   Ban this user!
Old 09-28-2011, 08:51 PM
 
Join Date: Apr 2011
Location: USA
Posts: 36
drdos is on a distinguished road

If what "Angelw" tells you to do doesn't work then chances are good that you need the "Fanuc" option bit turned on in order to use that function. Only Fanuc can turn options on anymore. You need to verify if you have that option turned on or not. The option is either J877 Multi-Repetitive Canned Cycle (T) Type 1 or J889 for type 2. If you call Fanuc at Customer Support 1-888-326-8287
Parts #1, Service/Tech Support #2, Repair #3, Training #4
and give them what is in your 9900 to 9990 parameters, they can tell you if it is on or not.
Reply With Quote

  #5   Ban this user!
Old 09-28-2011, 09:01 PM
 
Join Date: Apr 2011
Location: USA
Posts: 36
drdos is on a distinguished road

065 ILLEGAL COMMAND IN G71–G73
(T series)
1. G00 or G01 is not commanded at the block with the sequence
number which is specified by address P in G71, G72, or G73
command.
2. Address Z(W) or X(U) was commanded in the block with a
sequence number which is specified by address P in G71 or G72,
respectively.
Modify the program.
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 09-29-2011, 03:48 AM
fordav11's Avatar  
Join Date: Aug 2011
Location: Fordaville
Posts: 939
fordav11 is on a distinguished road

I would think ALL Fanuc T's are able to do the multiple repetitive cycles. they are pretty much stock-standard across the board. without them the whole thing is useless. might as well use a file, it'd be faster
I agree the W should be a U
Reply With Quote

  #7   Ban this user!
Old 09-29-2011, 04:53 AM
 
Join Date: Sep 2010
Location: Australia
Posts: 733
angelw is on a distinguished road

Originally Posted by fordav11 View Post
I would think ALL Fanuc T's are able to do the multiple repetitive cycles. they are pretty much stock-standard across the board. without them the whole thing is useless. might as well use a file, it'd be faster
I agree the W should be a U
In all my time in this game I've seen one machine that didn't have any multiple repetitive cycles, but quite a few that only had Type I. Late machines mostly have both, but I've worked on a few new machines as late as 2002 that only had Type I. They were low end, cheaper brands.

CNCALLthethings has more than one issue with his program, as pointed out in post #3, but I believe the cause of the alarm is the Z move in the block referenced by P in the G71 block. This block needs to have an X value, and he still may get the alarm if the control is only equipped with Type I and the Z move is retained with the X.

Regards,

Bill
Reply With Quote

  #8   Ban this user!
Old 09-29-2011, 07:23 AM
fordav11's Avatar  
Join Date: Aug 2011
Location: Fordaville
Posts: 939
fordav11 is on a distinguished road

yeah. multiple issues. two G20's as well. maybe he meant to use G72. The profile (P-Q) seems to be facing in which case the Z movement and the W is right. Very strange programming method.
I expect to see his next post.... "how to remove the tool post rammed inside the chuck at 1000 RPM?'
Hahaha
Reply With Quote

  #9   Ban this user!
Old 09-29-2011, 10:21 AM
 
Join Date: May 2004
Location: United States
Age: 48
Posts: 2,217
txcncman is on a distinguished road

Since CNCALLthethings has not posted back (in over 36 hours) I would bet his problem has been solved.
__________________
http://www.kirkcon.com/
Reply With Quote

  #10   Ban this user!
Old 09-29-2011, 08:09 PM
 
Join Date: Sep 2011
Location: United States
Posts: 8
CNCALLthethings is on a distinguished road

Sorry to go silent for two days...

I'm actually part of the Formula SAE team at my college, and this lathe has been sitting unused for a long time because nobody can get it running. We still are having trouble getting it to run the code, but are still working on the suggestions posted. Again, we have some combined experience with GCode and CNC machining, but trying to debug a machine is a bit tricky.

Thank you all very much for helping us! I'll post again with some progress as I work more with it.

And no, I figured that holding the tool post in the chuck would be a bad idea, so as tempting as it was I decided not to do it
Reply With Quote

Sponsored Links
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
EDGE II controller(phoenix V.6) can not show error messages of Command THC Automation Hypertherm Plasma 3 06-18-2010 09:20 AM
Need Help!- 065 Illegal command in G71-G73 jdgromi Fanuc 4 12-15-2008 01:45 PM
Need Help!- 032 illegal offset value in G10 mr-seiki Mori lathes 7 10-15-2008 02:11 PM
PCL command error velocitygraphix Laser Engraving & Cutting Machines 3 03-06-2008 07:11 AM
PCL command error velocitygraphix Mach Software (ArtSoft software) 0 03-05-2008 12:26 AM




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