|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Re: Help - G-Code Circular Motion for CNC Milling
Let's see ...
G02 = circular interpolation (clockwise) G03 = circular interpolation (counter-clockwise) Ok ... let's see if I remember this. We'll start with an arc. You first have to identify the point at which you want to start your arc. We'll use (1,4) as our starting point. The next step is the trickiest - you need to determine what the center point of your circle will be. mapping the whole thing out on graph paper is the easier way to do it, because then you can calculate the radius and you'll know where the centerpoint is (without a whole lot of trial and error on the actual part) the coordiantes for your center point are your (I,J) coordinates. The beginning and end points will always be (X,Y) coordinates Then, you need to identify your end point. We'll go with a quarter of a circle, which will put us at (6,1) **make sure that there is an equal distance from the center point to your beginning and end points! Otherwise, your mill will hate you and make your part look funny** For example: N08 G01 X1 Y4 ------ will move your cutter to (1,4) N09 G02 X4 Y7 I4 J4 ------- (4,4) - your (I,J) coordinates - is your center point. the cutter will move in a clockwise position until it hits (4,7) - your (X,Y) coordinates. If you want a larger arc, change your (X,Y) coordinates. For example: N09 G02 X7 Y4 I4 J4 --- will give you half a circle. N09 G02 X4 Y1 I4 J4 --- will give you three quarters of a circle. N09 G02 X1 Y4 I4 J4 --- will give you a full circle. Of course, you'll have to tweak this a bit to get the exact size circle you want and such but ... I hope this helped! (If you want a drawing, PM me!) Last edited by Katie Reynolds : 25-06-2004 at 14:39. |
|
#2
|
|||
|
|||
|
Re: Help - G-Code Circular Motion for CNC Milling
That helps a lot. Now how do I do this while moving downward? I don't want to take a 1/4" cut all at once of course. I could put like a G01 Z-.03 before the G02 code and then a G01 Z-.06 after and so on and so forth. Or is there a better way to do this? I know with G01 if you put like X1 Y1 Z-.5 it will ramp down until the Z axis reaches final depth of -.5 at X1 Y1. Is there a way to put G01 and G02 in the same line so the circle will like spiral down?
Mainly, I could just move the Z axis down a bit after running in a circle and then repeat but I think doing that would not make for a very nice bearing bore. Any ideas? |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Coding / Style Standards for sharing C code | Joe Johnson | Programming | 33 | 01-05-2004 15:15 |
| heres the code. y this not working | omega | Programming | 16 | 31-03-2004 15:18 |
| Interrupt timer, executing code asap? | SeanCassidy | Programming | 10 | 07-03-2004 01:47 |
| Inserting Naviagation code into Default code? | actorindp | Programming | 3 | 28-01-2004 18:12 |