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 07-08-2005, 05:33 PM
 
Join Date: Sep 2004
Location: Australia
Posts: 196
Darc is on a distinguished road
Talking Any idea why this roughing canned cycle won't work?

The machine is a Fagro 800T lathe (Damn old, but not bad otherwise)
It keeps giving me the error code 021 see manual, for the love of god I can't get this to work.
I've attached the relevant parts of the manual.
Thanks

Fagor 800T Info

G90 G71 G40 G95 F2.0
T06
G96 S1100
G92 S2350
M04
G00 X9.0
Z1.0
G68 P0 = K9.0 P1 = K1.0 P5 = K0.6 P7 = K0.3 P8 = K0.0 P9 = K0.2 P10 = K1.0 P13 = K190 P14 = K320
G40 G00 X60.0
M05
M30
N190 G90 G01 X4.7 Z1.0
Z0.0
X5.70 Z -0.5
Z -8.0
X6.3 Z -8.3
Z -47.01
X5.5
Z -47.58
X4.4 Z -49.54 I12.82 K -49.54 (R4.21)
Z -63.83
G02 X5.71 Z -66.29 I14.18 K -63.84 (R4.89)
G01 X7.3 Z -67.67
G00 X12.0
N320 Z1.0
Attached Files
File Type: pdf Fagor 800T Info.pdf‎ (143.6 KB, 178 views)
Reply With Quote

  #2   Ban this user!
Old 07-08-2005, 09:32 PM
WayneHill's Avatar  
Join Date: Mar 2004
Location: Michigan
Posts: 777
WayneHill is on a distinguished road

Originally Posted by Darc
The machine is a Fagro 800T lathe (Damn old, but not bad otherwise)
It keeps giving me the error code 021 see manual, for the love of god I can't get this to work.
I've attached the relevant parts of the manual.
Thanks

Fagor 800T Info

G90 G71 G40 G95 F2.0
T06
G96 S1100
G92 S2350
M04
G00 X9.0
Z1.0
G68 P0 = K9.0 P1 = K1.0 P5 = K0.6 P7 = K0.3 P8 = K0.0 P9 = K0.2 P10 = K1.0 P13 = K190 P14 = K320
G40 G00 X60.0
M05
M30
N190 G90 G01 X4.7 Z1.0
Z0.0
X5.70 Z -0.5
Z -8.0
X6.3 Z -8.3
Z -47.01
X5.5
Z -47.58
< G02/G03 ??? > X4.4 Z -49.54 I12.82 K -49.54 (R4.21)
<G01 ???> Z -63.83
G02 X5.71 Z -66.29 I14.18 K -63.84 (R4.89)
G01 X7.3 Z -67.67
G00 X12.0
N320 Z1.0
G02/G03 and G01 missing ?

If it is anything like the Fanuc roughing patterns, the toolpath must follow in a set direction and not "backup" or "undercut" on itself. (Bad description).
__________________
Wayne Hill
www.codemangler.com

Last edited by WayneHill; 07-08-2005 at 09:55 PM.
Reply With Quote

  #3   Ban this user!
Old 07-09-2005, 11:58 AM
MILLMANM's Avatar  
Join Date: Jul 2004
Location: United States
Posts: 93
MILLMANM is on a distinguished road

Darc
I SEE 2 PROBLEMS

1 IS A CHANGE IN X DIRECTION
X5.70 Z -0.5
Z -8.0
X6.3 Z -8.3
Z -47.01
X5.5
Z -47.58
MOST CAN CYCLES WILL NOT CHANGE AXIS DIRECTION
HAAS LATHE WITH YASNAC CONTROL WILL DO THIS MOVE

2 MISSING G02
G01 Z -47.58
G02 X4.4 Z -49.54 I12.82 K -49.54 (R4.21)
G01 Z -63.83


YOU CAN JUST PROGRAM THE GEOMETERY
WITHOUT A CAN CYCLE AND SEE IF IT RUNS
OF COURSE OFFSET TOOLS OR REMOVE STOCK

IF THIS WORKS YOU CAN WRITE THE ROUGHING PROGRAM LONG HAND


G90 G71 G40 G95 F2.0
T06
G96 S1100
G92 S2350
M04
G00 X9.0
Z1.0
G68 P0 = K9.0 P1 = K1.0 P5 = K0.6 P7 = K0.3 P8 = K0.0 P9 = K0.2 P10 = K1.0 P13 = K190 P14 = K320
G40 G00 X60.0
M05
M30
N190 G90 G01 X4.7 Z1.0
Z0.0
X5.70 Z -0.5
Z -8.0
X6.3 Z -8.3
Z -47.01
X5.5
Z -47.58
X4.4 Z -49.54 I12.82 K -49.54 (R4.21)
Z -63.83
G02 X5.71 Z -66.29 I14.18 K -63.84 (R4.89)
G01 X7.3 Z -67.67
G00 X12.0
N320 Z1.0
__________________
IF ITS NOT BROKE YOUR NOT TRYING HARD ENOUGH

Ashes to ashes , dust to dust , If it wasnt for Harleys the fast lane would rust.

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

  #4   Ban this user!
Old 07-10-2005, 06:42 PM
 
Join Date: Sep 2004
Location: Australia
Posts: 196
Darc is on a distinguished road

Thanks for the response Millman.
I tried your suggestion of making it go 1 way, but it still comes up with the error 21.
I wrote this program and it still won't work. well it's got me stumped.

G90 G71 G40 G95 F2.0
T06
G96 S1100
G92 S2350
M04
G00 X9.0
Z1.0
G68 P0 = K9.0 P1 = K1.0 P5 = K0.6 P7 = K0.3 P8 = K0.0 P9 = K0.2 P10 = K1.0 P13 = K100 P14 = K200
G40 G00 X60.0
M05
M30
N100 G01 X5.0
Z-10
X8.0
Z -20.0
X12.0
Z -30.0
N200 X15.0
Reply With Quote

  #5   Ban this user!
Old 07-12-2005, 03:44 AM
TEXASLEADH's Avatar  
Join Date: Aug 2003
Location: spring, texas usa
Posts: 7
TEXASLEADH is on a distinguished road

On What Block Does It Error? (021)
Will The Program Load From Disk Or Rs-232?
Are You Writting This Program On A Pc?
All Fagors I Have Ever Ran Required Line Numbers On Every Block.
Their Manuals Have A Lot Of Errors In Them. It Takes Alot Of Thanking To Figure Out How Or What They Were Thanking And How To Apply It.
Just Like Your Pdf File And Their Examples In My Manuals Don't Show P10 But It Is Required.
__________________
"LET THE LEAD FLY!"
Reply With Quote

Sponsored Links
  #6  
Old 07-12-2005, 07:43 AM
DareBee's Avatar
Monkeywrench Technician
 
Join Date: Jan 2004
Location: Stratford, Ont. Canada
Posts: 2,783
DareBee is on a distinguished road

Just a touch off topic - but I have a new lathe with a Fagor 8040T control, and I love it.
The conversational programming is EXTREMELY simple.
I haven't bothered to check what sort of code output it makes.
Maybe once I am done running this job I will copy the code from a straight turning block and post it for you, don't know if it will help, but what the hey.
__________________
www.integratedmechanical.ca
Reply With Quote

  #7   Ban this user!
Old 07-12-2005, 05:11 PM
 
Join Date: Sep 2004
Location: Australia
Posts: 196
Darc is on a distinguished road

I have written the program on both a pc and on the machine, our machine is very sensitive about incorrect parameters, it will not go across from the pc if something isn't correct.
I think the error was coming up on line the G68 code is on.
Yeah sorry I removed the line numbers to make it easier to read, I think it made it harder.
Reply With Quote

  #8   Ban this user!
Old 09-11-2005, 05:11 AM
 
Join Date: Sep 2005
Location: Germany
Posts: 3
Unimatrix is on a distinguished road

We have a lathe with the fagor 800t controller, too!
Do u have an ISO Programm running? Or do u have examples for ISO programms? We have big troubles with this controller!!
Reply With Quote

  #9   Ban this user!
Old 09-22-2005, 05:28 PM
 
Join Date: Sep 2005
Location: US
Posts: 4
tmax is on a distinguished road

I've been getting calls for this for 9 years. If you turn the page for G68 it explains this:
5. The pattern can be made up of straight lines and arcs. All the blocks of pattern
definition will be programmed with cartesian coordinates being mandatory to
program the two axes in absolute, otherwise, the CRT will display error 21. If arcs
are included in the definition, they must be programmed with the center’s I,K
coordinates, referred to the arc’s starting point and with the relevant sign. If
functions F,S,T or M are programmed in the definition, they will be ignored except
for the finishing pass. No polar definitions can be used.

A block in a profile must be as follows:
G1XZ
G2XZIK

Tom Maxwell
Fagor apps engineer
Reply With Quote

  #10   Ban this user!
Old 09-22-2005, 05:36 PM
 
Join Date: Sep 2005
Location: US
Posts: 4
tmax is on a distinguished road

Hey Unimatrix,
The 800T is a bit tricky to use. You can only run one iso program, 99996. It's programming is very similar to 8025, but the cycles are a little different as shown it's programming manual. If you have Ver. 6.6 there is a way you can get the cnc to convert a conversational program to P99996 using simulation.
3. GENERATING AN ISO-CODED PROGRAM
With this CNC, the ISO code (low level) for an operation or a part-program may be generated.
To use this feature, machine parameter "P623(2)" must be set to "1".
This ISO program always has the number: 99996 and can be stored either at the CNC or at a PC.
Program 99996 is a special user program in ISO code and can be:
Generated from an operation or a part-program.
Edited at the CNC itself via menu option: "Auxiliary Modes - Edit program 99996"
Loaded into the CNC after being generated at a PC.
Generating the ISO program (99996) at the CNC.
This CNC has 7 K of memory space to store program 99996. If the generated program is larger than that, the CNC will issue
the relevant error message.
To generate program 99996, proceed as follows:
* If it is an operation, select or define the desired operation.
* If it is a part-program, select the desired one in the part-program directory and place the cursor on its header ("PART 01435".
A listing of the operations it consists of must appear).
* Press the keystroke sequence: [AUX] [7]. The CNC will show the graphic simulation screen.
* Press . The CNC starts simulating the part and generating its ISO-coded program 99996.
* When done with the simulation, program 99996 stored in CNC memory will contain all simulated blocks in ISO code.

This should give you an idea of the structure of the code.
Hope this helps,
Tom Maxwell
Fagor apps engineer
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 09-23-2005, 08:59 AM
 
Join Date: Sep 2005
Location: Germany
Posts: 3
Unimatrix is on a distinguished road

U mean the controller can show me the ISO-code of an cycle?

And why does the controller activate the radius-correction only at the last operation? We have so big troubles to make a radius with a large turning tool!

And how do I knwo which version i have?

Last edited by Unimatrix; 09-23-2005 at 11:23 AM.
Reply With Quote

  #12   Ban this user!
Old 09-23-2005, 06:40 PM
 
Join Date: Feb 2005
Location: usa
Posts: 376
little bubba is on a distinguished road

Just guessing but if this is the same as an 8025, your P0 & P1 should be the first point in your profile. Then the P13 P14 should be the contour of the rest of your profile. Therefore P0 =K9. is larger than the first point in your profile, when I check a program I check to make sure that the X is always going in one direction and the Z the other. The point you moved your tool to before calling the canned cycle determines the outer X and Z points. So simply take the first point of your profile and make that your P0 and P1, then start your P13 P14 profile at the second point of your profile. I hope this helps.
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
Empty Roughing pass new2cnc Mastercam 1 05-28-2005 08:31 AM
Machine Specific Canned Cycles jonbanquer NCPlot G-Code editor / backplotter 7 05-27-2005 05:19 PM
Work coordinate in canned cycle line acseatsri G-Code Programing 1 02-14-2005 09:11 PM
Haas G85 Boring Cycle (canned) DEAN Haas Mills 7 12-08-2003 10:12 AM
Incremental Canned Cycles? Rekd Haas Mills 16 11-15-2003 12:23 AM




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