Results 1 to 4 of 4

Thread: Gcode for circle

  1. #1
    Registered
    Join Date
    Mar 2008
    Location
    Sweden
    Posts
    1
    Downloads
    0
    Uploads
    0

    Gcode for circle

    Hi! I´m new to this forum and didn't know were to post this question..
    Could someone help me with the code for making a circle in Turbo-Cnc? (g code)?

    thanks / Christian


  2. #2
    Registered beege's Avatar
    Join Date
    Feb 2008
    Location
    USA
    Posts
    546
    Downloads
    0
    Uploads
    0
    Don't know about TurboCNC, but....

    G03 is a counter-clockwise arc, G02 is clockwise.

    If you dont program an X or Y with G02/3 you might get a full circle, but you would have to program an I and/or J as circle center

    G03I-1.0 should get you a ccw circle, 2mm in diameter (I'm assuming metric, as you're in Sweden

    The -1.0 means the circle center is 1.0mm from the start point, in a negative direction.

    Hope it helps!


  3. #3
    Registered The Blight's Avatar
    Join Date
    Sep 2006
    Location
    Denmark
    Posts
    581
    Downloads
    0
    Uploads
    0
    There is a nice explenation of how this works in the TCNC manual.


  4. #4
    Registered
    Join Date
    Jan 2007
    Location
    USA
    Posts
    355
    Downloads
    0
    Uploads
    0
    The general syntax for a clockwise arc is

    G02 X Y I J

    The I & J parameters indicate the center (I for X, J for Y) of the arc. They are relative to the current machine position.

    For example, to interpolate a 5" diameter circle centered at (10,10)

    G90 ( absolute positioning)
    G01 X10.0 Y12.5 (move to start of arc)
    G02 X10.0 Y12.5 I0.0 J-2.5 (arc center is relative, not absolute)
    Diplomacy is the art of saying "Nice doggie" until you can find a rock. - Will Rogers


Similar Threads

  1. cut circle
    By bbrown2005 in forum Mach Wizards, Macros, & Addons
    Replies: 2
    Last Post: 02-04-2009, 07:41 PM
  2. Problem- circle
    By AngelT in forum Mach Mill
    Replies: 1
    Last Post: 06-30-2008, 09:59 AM
  3. Circle problem
    By Captain Midnigh in forum Milltronics
    Replies: 3
    Last Post: 11-09-2006, 03:11 PM
  4. Replies: 0
    Last Post: 03-10-2005, 01:46 PM
  5. gcode to gcode converter
    By july_favre in forum General CAM Discussion
    Replies: 4
    Last Post: 05-24-2004, 07:51 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.