Results 1 to 8 of 8

Thread: Is this Code Correct?

  1. #1
    Registered
    Join Date
    Sep 2010
    Location
    iran
    Posts
    29
    Downloads
    0
    Uploads
    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
    Registered
    Join Date
    Feb 2006
    Location
    india
    Posts
    1,273
    Downloads
    0
    Uploads
    0
    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
    Registered HAR THA's Avatar
    Join Date
    Nov 2008
    Location
    myanmar
    Posts
    12
    Downloads
    0
    Uploads
    0
    Hello
    I think you can try by entering -sign in R parameter value.


  4. #4
    Registered
    Join Date
    Sep 2010
    Location
    iran
    Posts
    29
    Downloads
    0
    Uploads
    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
    Registered
    Join Date
    Sep 2010
    Location
    Australia
    Posts
    987
    Downloads
    0
    Uploads
    0
    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
    Registered dcoupar's Avatar
    Join Date
    Mar 2003
    Location
    USA
    Posts
    2,502
    Downloads
    0
    Uploads
    0
    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
    UUU
    UUU is offline
    Registered
    Join Date
    Apr 2010
    Location
    UK
    Posts
    289
    Downloads
    0
    Uploads
    0
    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
    Registered
    Join Date
    Feb 2006
    Location
    india
    Posts
    1,273
    Downloads
    0
    Uploads
    0
    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, 08:37 AM
    2. Need Help!- Correct voltage and amp. on m-code relay
      By kbspeed in forum Haas Mills
      Replies: 4
      Last Post: 10-12-2010, 04:14 PM
    3. Need Help!- What's the correct post processor code for EMC2?
      By OneAndy in forum General CAM Discussion
      Replies: 2
      Last Post: 10-18-2008, 10:05 PM
    4. Please correct me if im wrong.
      By Craigpat in forum Gecko Drives
      Replies: 2
      Last Post: 09-24-2007, 11:48 AM
    5. 086 Alarm - How do I correct?
      By maxvic in forum Fanuc
      Replies: 8
      Last Post: 04-14-2007, 03:06 PM

    Posting Permissions


     


    About CNCzone.com

      We are the largest and most active discussion forum from DIY CNC Machines to the Cad/Cam software to run them. The site is 100% free to join and use, so join today!

    Follow us on

    Facebook Dribbble RSS Feed


    Search Engine Friendly URLs by vBSEO ©2011, Crawlability, Inc.