Go to Post I wonder if Radio Shacks all over should prepare for VEX robots dropping by for spare parts just like people going to a medical clinic... - Wayne C. [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 Rating: Thread Rating: 3 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 11-04-2014, 00:02
bs7280 bs7280 is offline
Registered User
FRC #3734
Team Role: Leadership
 
Join Date: Feb 2012
Rookie Year: 2011
Location: Lake Forest
Posts: 80
bs7280 has a spectacular aura aboutbs7280 has a spectacular aura aboutbs7280 has a spectacular aura about
Non circular arcs in G-code

Hello all!

I am trying to learn how to use G-code more and I am making software for our team that will generate G-code for us (to put it simply). One thing that I am trying to do is make non circular arcs. I have figured how to make standard curves with G02 and G03 but I was wondering if it was possible to cut a non circular arc, such as an ellipse or a parabola.

Thanks, 3734
  #2   Spotlight this post!  
Unread 11-04-2014, 00:11
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,510
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: Non circular arcs in G-code

I'm not familiar with any single G code to do this. Whatever CAM package you're using will likely approximate the curve with a series of a whole bunch of little tiny tangent fixed radius arcs when it goes to actually post the G code. So it would probably be a rather large file full of G02s or G03s.
__________________
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
  #3   Spotlight this post!  
Unread 11-04-2014, 01:40
AlecS AlecS is offline
Registered User
FRC #1323 (Madtown Robotics)
Team Role: Mentor
 
Join Date: May 2012
Rookie Year: 2008
Location: San Jose, CA
Posts: 66
AlecS has a reputation beyond reputeAlecS has a reputation beyond reputeAlecS has a reputation beyond reputeAlecS has a reputation beyond reputeAlecS has a reputation beyond reputeAlecS has a reputation beyond reputeAlecS has a reputation beyond reputeAlecS has a reputation beyond reputeAlecS has a reputation beyond reputeAlecS has a reputation beyond reputeAlecS has a reputation beyond repute
Re: Non circular arcs in G-code

Although G-code itself isn't even fully standardized, there is no standard command for ellipse's, parabola's, etc. The closest thing you may find is NURBs interpolation, but this varies from controller to controller. NURB's commands work kind of like the spline tool in CAD programs, but again the exact implementation will vary, if it even exists on your machine. They are however, not very common in most basic machine work, and only really come into use in large die/mold work.

The most common way to do this is to use a CAM program (HSMworks is free) to output the curve. The CAM program will use either lines or arcs to approximate the curve. Sadly, if you're trying to write your own programs, you are pretty much out of luck when it comes to complex curves.
__________________
Alec S.
Engineer - Sales Representative, WestCoast Products || Twitter
MadTown Robotics Team 1323
  #4   Spotlight this post!  
Unread 11-04-2014, 01:44
Gray Adams's Avatar
Gray Adams Gray Adams is offline
Registered User
no team
 
Join Date: Dec 2011
Rookie Year: 2000
Location: none
Posts: 282
Gray Adams is a splendid one to beholdGray Adams is a splendid one to beholdGray Adams is a splendid one to beholdGray Adams is a splendid one to beholdGray Adams is a splendid one to beholdGray Adams is a splendid one to beholdGray Adams is a splendid one to behold
Re: Non circular arcs in G-code

Quote:
Originally Posted by sanddrag View Post
I'm not familiar with any single G code to do this. Whatever CAM package you're using will likely approximate the curve with a series of a whole bunch of little tiny tangent fixed radius arcs when it goes to actually post the G code. So it would probably be a rather large file full of G02s or G03s.
And G01s. I can't think of a time you would want to do this anyway. It's much quicker to use CAM software for anything that isn't simple lines and arcs, which is still usually slower than CAM.
  #5   Spotlight this post!  
Unread 11-04-2014, 02:20
MissRaptor's Avatar
MissRaptor MissRaptor is offline
Master CADster
AKA: Melanie
FRC #2052 (KnightKrawler)
Team Role: College Student
 
Join Date: Feb 2013
Rookie Year: 2010
Location: Minnesota
Posts: 12
MissRaptor is an unknown quantity at this point
Re: Non circular arcs in G-code

Quote:
Originally Posted by bs7280 View Post
Hello all!

I am trying to learn how to use G-code more and I am making software for our team that will generate G-code for us (to put it simply). One thing that I am trying to do is make non circular arcs. I have figured how to make standard curves with G02 and G03 but I was wondering if it was possible to cut a non circular arc, such as an ellipse or a parabola.

Thanks, 3734
Hey! I was part of a technical school for awhile and did precision machining, so along with manual machining I had started to learn CNC. For sheer programming in theory you could brute force it but that'd be a ton of lines in your code. (So literally putting in tons and tons of coordinates corresponding with the desired shape.) Or something along that train of thought. Depending on how much your team uses things needing g-code I would heavily recommend MasterCAM (This being if you use g-code A TON(I can't find an actual price anywhere but not cheap, and sadly student edition doesn't post. grrr. But it may give you the coordinates you need as effectively. But then you could use a few programs for that. Sigh why thou world cost so much of the money) I don't know about discounts but it's an investment.. not a free program but extrememly extrememly useful) though. It's got a very CAD like feel to it, however it also allows you to create a program and post G-Code all ready to go. It takes a bit to get used to and you still need to be careful about your program (Dry runs and single step) for the initial runs of it, but in all it's a VERY convenient software.

If you had any interest in it I would always be happy to help you understand the program or answer any questions you have about it at all! I'm a bit rusty on my g-code but I would love to refresh my memory and assist in any way I could if you'd like any help!
__________________
Madly in love with FIRST everywhere

2014 Lake Superior Regional Winner
2014 10,000 Lakes Regional Winner
2014 MNSHL Championship Winner



Last edited by MissRaptor : 11-04-2014 at 02:30. Reason: Added the bottom part
  #6   Spotlight this post!  
Unread 11-04-2014, 23:10
DonRotolo's Avatar
DonRotolo DonRotolo is offline
Back to humble
FRC #0832
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Atlanta GA
Posts: 6,995
DonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond repute
Re: Non circular arcs in G-code

Quote:
Originally Posted by bs7280 View Post
I am trying to learn how to use G-code more and I am making software for our team that will generate G-code for us (to put it simply).
Not sure that you'd want to reinvent that wheel. It is not a trivial task.

There is plenty of costware out there for this, from small hundreds to several thousands. MasterCAM is great, but check the price first.

If you use SolidWorks or Inventor, get a copy of HSMExpress (it is free), that will do the job very well. It does have some minor drawbacks, but for the price...

Personally I recommend anything from Vectric, particularly Cut2D. Fast, simple and powerful. And $150.
__________________

I am N2IRZ - What's your callsign?
  #7   Spotlight this post!  
Unread 12-04-2014, 00:14
66hades 66hades is offline
Mechanical Assistant
AKA: Brian Neumeyer
FRC #3539 (Byting Bulldogs)
Team Role: Mentor
 
Join Date: Apr 2011
Rookie Year: 2011
Location: United States
Posts: 2
66hades is an unknown quantity at this point
Re: Non circular arcs in G-code

I had the same question when I was learning g&m code, the answer I found was don't worry about it lol. I applaud your effort to build an in house CAM software, my old boss did something similar with Autodesk so I know it is possible. As for an solution, you might want to check out linear approximation in calculus. I'm not sure if it would be applicable, but it does turn curves into tangent lines.
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


All times are GMT -5. The time now is 14:57.

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