586,005 active members*
5,181 visitors online*
Register for free
Login
Results 1 to 8 of 8
  1. #1
    Join Date
    Sep 2010
    Posts
    0

    Is this Code Correct?

    Hello
    I want to write Gcode for a part of Two inside Circle(Arcs) with same center and diffrent radius. but I wrote it simple and I do not know where is problem?
    my code is;
    G00 X0 Y4
    G02 X4 Y0 I4 J4 R4
    G00 X2 Y4
    G02 X4 Y2 I4 J4 R2

    and if I want to write a Gcode for full circle how do I write ?I want to use just G00 and G02 with 2 lines.I have Gcode for circle but I do not want to use it.

  2. #2
    Join Date
    Feb 2006
    Posts
    1792
    Plot it. You will yourself find out the error.

    Use either IJ or R, not both. If you specofy both, IJ is ignored and R is used (on Fanuc).

  3. #3
    Join Date
    Nov 2008
    Posts
    12
    Hello
    I think you can try by entering -sign in R parameter value.

  4. #4
    Join Date
    Sep 2010
    Posts
    0
    Quote Originally Posted by HAR THA View Post
    Hello
    I think you can try by entering -sign in R parameter value.

    Thank you
    you mean the code of full circle is:
    G00 X1 Y4
    G02 X1 Y4 R5
    because the start point and end point Must be same.
    Is that right?

  5. #5
    Join Date
    Sep 2010
    Posts
    1230
    Quote Originally Posted by Farzaneh_2010 View Post
    Thank you
    you mean the code of full circle is:
    G00 X1 Y4
    G02 X1 Y4 R5
    because the start point and end point Must be same.
    Is that right?
    R will not work with a complete circle with a Fanuc control. R with a minus sign is programmed when the arc angle is greater than 180deg. However, when the start point of the circular move is the same as the end point (a complete circle), the arc angle is computed as zero deg and the machine will not move if programmed with an R value. I and or J must be used with a complete circle.

    Regards,

    Bill

  6. #6
    Join Date
    Mar 2003
    Posts
    2932
    Quote Originally Posted by Farzaneh_2010 View Post
    Hello
    I want to write Gcode for a part of Two inside Circle(Arcs) with same center and diffrent radius. but I wrote it simple and I do not know where is problem?
    my code is;
    G00 X0 Y4
    G02 X4 Y0 I4 J4 R4
    G00 X2 Y4
    G02 X4 Y2 I4 J4 R2

    and if I want to write a Gcode for full circle how do I write ?I want to use just G00 and G02 with 2 lines.I have Gcode for circle but I do not want to use it.
    What control is this for? It won't work for a Fanuc, Yasnac, Haas, or similar controls. These controls use I and J to specify the center location incrementally from the start point of the arc. Some controls use I and J as absolute center coordinates, in which case this code might be correct.

  7. #7
    Join Date
    Apr 2010
    Posts
    294
    If you remove the R codes and end up with just this:

    G00 X0 Y4
    G02 X4 Y0 I4 J4
    G00 X2 Y4
    G02 X4 Y2 I4 J4

    it seems to work, if I and J are absolute values.

    For I and J as incremental values, try this:

    G00 X0 Y4
    G02 X4 Y0 I4 J0
    G00 X2 Y4
    G02 X4 Y2 I2 J0

    For complete circles, with absoloute I and J try this:

    G00 X0 Y4
    G02 X0 Y4 I4 J4
    G00 X2 Y4
    G02 X2 Y4 I4 J4

    Or complete circles with incremental IJ:

    G00 X0 Y4
    G02 X0 Y4 I4 J0
    G00 X2 Y4
    G02 X2 Y4 I2 J0

  8. #8
    Join Date
    Feb 2006
    Posts
    1792
    Absolute or incremental IJK are parameter dependent. Usually, these are incremental distances from the start point.

Similar Threads

  1. Correct Pay??
    By j-radkemachine in forum Employment Opportunity
    Replies: 77
    Last Post: 11-12-2012, 02:37 PM
  2. Correct voltage and amp. on m-code relay
    By kbspeed in forum Haas Mills
    Replies: 4
    Last Post: 10-12-2010, 09:14 PM
  3. What's the correct post processor code for EMC2?
    By OneAndy in forum Uncategorised CAM Discussion
    Replies: 2
    Last Post: 10-19-2008, 03:05 AM
  4. Please correct me if im wrong.
    By Craigpat in forum Gecko Drives
    Replies: 2
    Last Post: 09-24-2007, 04:48 PM
  5. 086 Alarm - How do I correct?
    By maxvic in forum Fanuc
    Replies: 8
    Last Post: 04-14-2007, 08:06 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
  •