586,112 active members*
3,095 visitors online*
Register for free
Login
IndustryArena Forum > Machine Controllers Software and Solutions > Fanuc > 5T G02/03 Circular Interpolation problems
Results 1 to 14 of 14
  1. #1
    Join Date
    Jul 2007
    Posts
    21

    5T G02/03 Circular Interpolation problems

    I would like to know what I am doing wrong, I can not get my lathe to do a G02 or 03, it always gives an alarm #20 (in circular interpolation the programmed end point of an arc is not located within the allowable area) no matter what I try it always gives this alarm. As I understand that the 5T can only do one quadrant arcs, I have tried absolute and incremental values, switching pos/neg directions, I even tried the example in the manual, all with no sucess. Here is my latest example, I am using the rear turret on my lathe so the tool is on the negative side of X zero when I use G50 to set X zero on the spindle center line and Z zero at the end of the part.

    N010G00X-10000Z0000 (RAPID TO POSITION 1" DIA. AT Z ZERO)
    N020G01Z-10000F0100 (FEED TO Z-1" ARC START POSITION)
    N030G02U-5000W-5000I-5000F0100 (CLOCKWISE ARC INC. U-.5", W-.5", ARC END POSITION, ARC CENTER POSITION I-.5")

    Can anyone tell me if there is something wrong with this program, or if my control might not be able to do G02/03 commands? Is there a parameter setting that might need tweeking?

    Sincerly Frustrated,
    Steve

  2. #2
    Join Date
    Mar 2007
    Posts
    207
    According to my manuals, the G02/G03 functions were part of the basic commands that were included with all machines.

    I didn't see a "K" value in your code... I'd put one in, even if its zero.

    John

  3. #3
    Join Date
    Sep 2005
    Posts
    767
    I noticed that your first X move goes to a negative dimension (X-10000). Is this a Mori-Seiki? Mori Seikis of that vintage had the X axis backwards from other machines, meaning that all the dimensions on the part in X were negative. It also means that G02 and G03 are reversed from the operator's perspective. Since the coordinate system is "flipped over", imagine looking UP at the part to determine "clockwise" and "counter-clockwise".

    When you convert a "normal" lathe program to run on an Mori with the backwards X axis, you have to mirror all the X dimensions, swap all the G02s and G03s and also swap all the G41s and G42s (cutter comp. left and cutter comp right).

    This unusual setup was due to the fact that the early Mori toolchangers were on the "backside" of the spindle, and the spindle rotated so that cutting forces were not trying to "lift" the crosslide off the ways.

  4. #4
    Join Date
    Jul 2007
    Posts
    21
    I have tried that and it does not seem to matter, I think I must be having some other issue that I don't understand.

    Thanks!
    Steve

    Quote Originally Posted by John3 View Post
    According to my manuals, the G02/G03 functions were part of the basic commands that were included with all machines.

    I didn't see a "K" value in your code... I'd put one in, even if its zero.

    John

  5. #5
    Join Date
    Jul 2007
    Posts
    21
    Hi Dan,

    This is a 1980 Howa Sangyo, it has two four tool turrets, one in front toward the operator and one in the rear oposet side of spindle. I think I understand the co-ordinate system on this machine, but that's probably where I am in trouble.
    Let me try to explain what I am doing, I first sent the cariage to the zero return position in X&Z, zeroed the readout, installed the tool I wanted to use, moved the tool to the part and recorded the X&Z readings to corespond to the parts X&Z zero. I programmed these readings into the G50X---Z--- command to set the distance the zero return position is, back from the part co-ordinate zero position. The numbers all seem to work, I can do point to point cutter paths, infact if I replace the G02 with G01 and delete the "I" value it runs the program with a diagonal cut instead of an arc. However, what you said about looking at the CW/CCW from the under side makes sence. I may have to try G03 and keep my "I" dimention negative, I think I have tried this, but I am loosing track of everything I have tried.

    By the way, thanks for the rapid traverse parameter setting information, it worked perfectly, Now all I have to do is learn the way to propperly program circular interpolation on this machine.

    Best Regards,
    Steve

    Quote Originally Posted by Dan Fritz View Post
    I noticed that your first X move goes to a negative dimension (X-10000). Is this a Mori-Seiki? Mori Seikis of that vintage had the X axis backwards from other machines, meaning that all the dimensions on the part in X were negative. It also means that G02 and G03 are reversed from the operator's perspective. Since the coordinate system is "flipped over", imagine looking UP at the part to determine "clockwise" and "counter-clockwise".

    When you convert a "normal" lathe program to run on an Mori with the backwards X axis, you have to mirror all the X dimensions, swap all the G02s and G03s and also swap all the G41s and G42s (cutter comp. left and cutter comp right).

    This unusual setup was due to the fact that the early Mori toolchangers were on the "backside" of the spindle, and the spindle rotated so that cutting forces were not trying to "lift" the crosslide off the ways.

  6. #6
    Join Date
    Jan 2007
    Posts
    333
    "X" is a diameter value and "I" is usually a radial value...... your command of I-5000 means to swing a 1/2 inch radius. Is that what you want?

  7. #7
    Join Date
    Jul 2007
    Posts
    21
    In this example, yes .500" radius.

    Steve

  8. #8
    Join Date
    May 2007
    Posts
    781
    I normally do mills and if you ask I will tell you most lathe programming is FUBAR.

    So for what it's worth, why the switch from X,Z axis in the linear moves to U,W in the G2?

  9. #9
    Join Date
    Mar 2007
    Posts
    207
    I'm I right about this?....

    Your U-5000 is a half in change in part diameter. That's a 1/4 step on each side.

    If you want to do that, wouldn't the radius of the arc be a 1/4" and not a half?

    As bborb points out, your I-5000 is swinging an arc of 1/2"... that won't fit your part.

    John

  10. #10
    Join Date
    Jan 2007
    Posts
    333
    The control is correct, your endpoint is NOT on the defined radius. You've defined a .5 inch radius with its center at X2.0 Z0.0
    You've started the the G02 cut at X1.0 Z0.0
    You've programmed the endpoint of the cut at X1.5 Z-.5
    The endpoint doesn't lie on the programmed radius.
    Here are examples of points that DO lie on your radius:
    X1.0 Z0.0
    X2.0 Z-.5
    X3.0 Z0.0
    X2.0 Z.5

    X is diameter value, U is diameter value, I is radial value
    Z is Z and W is W

  11. #11
    Join Date
    Jul 2007
    Posts
    21
    Hi Andre'

    I like using absolute X Y Z in my programming, I tried that first and thought I would try incremental U W to see if it made a difference. I am hoping it is an upside down issue where the G02 needs to be G03, I am going to try this tonight.

    Thanks,

    Steve

  12. #12
    Join Date
    Jul 2007
    Posts
    21
    OK,

    I might see this for the incremental answer, U-10000 with I=5000.

    I will try this!

    Thanks,

    Steve

  13. #13
    Join Date
    Jan 2007
    Posts
    333
    or U-10000 and I-5000

  14. #14
    Join Date
    Jul 2007
    Posts
    21

    Smile

    I would like to thank everyone for the help, the problem was two fold. First, the G02 CW / G03 CCW direction on this machine has to be looked at from the bottom looking up, not the top down. Second, X= diameter absolute, and U=d iameter incremental. The programming example in the 5T manual I have showed X as the diameter, and U as incremental, but not so!

    I now have a complete functioning four tool part program with circular interpolation from both sides of the spindle, again, Big Thanks to everyone!

    Till next time,
    Steve

Similar Threads

  1. Should CAM software generate circular interpolation?
    By M30 in forum Uncategorised CAM Discussion
    Replies: 20
    Last Post: 08-01-2007, 02:28 AM
  2. No circular interpolation in G-Code?
    By M30 in forum Mastercam
    Replies: 2
    Last Post: 07-25-2007, 03:55 AM
  3. circular interpolation description
    By tom bryant in forum Uncategorised MetalWorking Machines
    Replies: 6
    Last Post: 05-26-2007, 07:51 PM
  4. Mazak Mill Circular Interpolation problem
    By DublJ in forum Mazak, Mitsubishi, Mazatrol
    Replies: 2
    Last Post: 02-13-2007, 06:13 PM
  5. question about circular interpolation
    By warpedmephisto in forum Benchtop Machines
    Replies: 13
    Last Post: 03-22-2006, 11:51 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •