1. ## 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. 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. There is a nice explenation of how this works in the TCNC manual.

4. 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)