Go to Post Don't be too distracted by the shiny robots, and the games they play. Enjoy them, but keep your eyes on the real prize(s). - gblake [more]
Home
Go Back   Chief Delphi > Technical > Technical Discussion
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 25-06-2004, 02:44
Elgin Clock's Avatar
Elgin Clock Elgin Clock is offline
updates this status less than FB!
AKA: the one who "will break into your thoughts..."
FRC #0237 (Black Magic)
Team Role: Mentor
 
Join Date: May 2001
Rookie Year: 2001
Location: H20-Town, Connecticut
Posts: 7,773
Elgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond repute
Send a message via AIM to Elgin Clock
Re: Help - G-Code Circular Motion for CNC Milling

From what I remember in my CNC class a few years ago, G Codes make circles by defining a center point and a radius. I think...

I'll see if I can track down my book and give you a better answer.

I know we had to hand type a program to make our first name in block letters and then make a program that included the radii of the letters, which was fairly simple if I recall correctly.
__________________
The influence of many leads to the individuality of one. - E.C.C. (That's me!!)

  #2   Spotlight this post!  
Unread 25-06-2004, 13:17
Katie Reynolds Katie Reynolds is offline
Registered User
no team (NEW Apple Corps)
Team Role: Alumni
 
Join Date: Nov 2001
Rookie Year: 2001
Location: Appleton, WI, USA
Posts: 2,598
Katie Reynolds has a reputation beyond reputeKatie Reynolds has a reputation beyond reputeKatie Reynolds has a reputation beyond reputeKatie Reynolds has a reputation beyond reputeKatie Reynolds has a reputation beyond reputeKatie Reynolds has a reputation beyond reputeKatie Reynolds has a reputation beyond reputeKatie Reynolds has a reputation beyond reputeKatie Reynolds has a reputation beyond reputeKatie Reynolds has a reputation beyond reputeKatie Reynolds has a reputation beyond repute
Send a message via AIM to Katie Reynolds Send a message via Yahoo to Katie Reynolds
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!)
__________________
Team #93 - NEW Apple Corps
Student - 2001-2004
Team #857 - Superior Roboworks
Mentor - 2006-2009

Last edited by Katie Reynolds : 25-06-2004 at 14:39.
  #3   Spotlight this post!  
Unread 25-06-2004, 14:15
sanddrag sanddrag is offline
On to my 16th year in FRC
FRC #0696 (Circuit Breakers)
Team Role: Teacher
 
Join Date: Jul 2002
Rookie Year: 2002
Location: Glendale, CA
Posts: 8,516
sanddrag has a reputation beyond reputesanddrag has a reputation beyond reputesanddrag has a reputation beyond reputesanddrag has a reputation beyond reputesanddrag has a reputation beyond reputesanddrag has a reputation beyond reputesanddrag has a reputation beyond reputesanddrag has a reputation beyond reputesanddrag has a reputation beyond reputesanddrag has a reputation beyond reputesanddrag has a reputation beyond repute
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?
__________________
Teacher/Engineer/Machinist - Team 696 Circuit Breakers, 2011 - Present
Mentor/Engineer/Machinist, Team 968 RAWC, 2007-2010
Technical Mentor, Team 696 Circuit Breakers, 2005-2007
Student Mechanical Leader and Driver, Team 696 Circuit Breakers, 2002-2004
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

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


All times are GMT -5. The time now is 02:33.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi