![]() | |
| Home Page | Mark Forums Read | Today's Posts | My Replies | Classifieds | Reviews | Photo Gallery | Web Links | Share Files | Advertise With Us | Ad List |
| |||||||
| DIY-CNC Router Table Machines Discuss the building of home-made CNC Router tables here! |
| This forum is sponsored by: |
![]() |
| | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
| |||
| |||
| I've written computer programs since I was 8 in many different languages, so I do not expect that I'll have any difficulty learning g code. However, Google really doesn't turn up much. I can find lists of varying lengths of the various g code commands, but I can find very little in the way of a tutorial. I would like to not only see the complete list of commands, but also an example of each command. Maybe I'm using the wrong search terms. Can someone direct me to such a tutorial, if it exists? |
|
#2
| |||
| |||
| This is a very comprehensive course thst covers everything. MFET 275 - CNC Applications A thing to be aware of with G and M codes is that there are some differences in code interpretation between different manufacturers. Most codes do mean the same on just about every machine but codes that call up canned routines are often different.
__________________ An open mind is a virtue...so long as all the common sense has not leaked out. |
|
#3
| ||||
| ||||
| The difference also applies to Machine application types, for e.g. the G codes will vary between Mill, Lathe,Gantry (router,plasma,oxy/gas), EDM, Punch press etc, to suit the difference in machine peculiarities. Also as Geoff points out M codes although often follow traditional practice, are written at the discretion of the MTB, so these can vary between identical controllers. Get a hold of a copy of CNC Programming Handbook by Peter Smid. Al.
__________________ CNC, Mechatronics Integration and Machine Design. “Logic will get you from A to B. Imagination will take you everywhere.” Albert E. |
|
#4
| ||||
| ||||
| That's good, but I'm hoping for more of a book format. Not necessarily a book, but in the format of a book. Also, how would one write a g code program to machine a curve path? Let's say, for example, that I want to mill the letter "S" out of wood and I use a drawing program to define the character out of Bezier curves. How do I machine the profile? My guess would be to write a program (not g code) that converts the curves into a series of line segments and then outputs the correct g code. Is there a better way? Will do, although I'd like an online reference as well. It has been my experience, from a game programming perspective, that technical books pretty much are out of date at the moment of printing. Maybe not so much in this case, but the internet is far more dynamic. |
|
#5
| ||||
| ||||
| You need a CAM system, this follows the CAD operation, Mach has a built in CAM called Lazycam where you can import different CAD or drawing file types. It also has a Customizable M code application. Even complicated shapes end up as G code, if not simple arcs or circles then smaller segments are generated. Al.
__________________ CNC, Mechatronics Integration and Machine Design. “Logic will get you from A to B. Imagination will take you everywhere.” Albert E. |
| Sponsored Links |
|
#6
| |||
| |||
|
|
#7
| |||
| |||
| You don't need a CAM program, it just makes things easier. I went to a community college and bought a G-code programming book (used) at the book store. It came with a 100 line G-code interpreter (Predator CNC) to show the moves from a written G-code program. A book from a college book store will teach you how to interpret a blue print, offset your cutter (cutter comp) and do lead in's to your work. Ebay might be a good place to look for a used college book that's cheaper than a college bookstore would be. My book used Fanuc G-code language as the G-code it taught. Fanuc is about as generic a G-code as it comes. |
|
#8
| ||||
| ||||
__________________ Gerry Mach3 2010 Screenset http://home.comcast.net/~cncwoodworker/2010.html (Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management) |
|
#9
| ||||
| ||||
| Al.
__________________ CNC, Mechatronics Integration and Machine Design. “Logic will get you from A to B. Imagination will take you everywhere.” Albert E. |
|
#10
| ||||
| ||||
As a developer, my guess is you'll appreciate this document. http://citeseerx.ist.psu.edu/viewdoc...=rep1&type=pdf G-Code files are text, so understanding what the interpreter is looking for is a good place to start. Another good resource is the EMC2 Project. The source code is available as a free download. ~John |
| Sponsored Links |
|
#11
| |||
| |||
| That is EXACTLY the kind of thing I was looking for! Thanks! ![]() I'll look up the EMC2 project. Sounds interesting. |
|
#12
| ||||
| ||||
| I agree that breaking things up into line segments detracts from accuracy...but... You can decide the standard deviation from the actual curve. That means basicly you can let the path deviate by as much as you want to shorten program length by using longer and fewer line segments. You can also specify better accuracy standards which just means more smaller segments that better apporximate the actual geometry. This can give you accuracy to as close a tolerance as your machine tool can hold. (.01-.001 for a decent cnc router or .001-.0002 for a mill from my experiance). Judleroy |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Mi primer CNC <<Colombia>> | macsim | Spanish CNCzone | 45 | 04-11-2012 08:13 AM |
| Primer post, solicito ayuda. | dolordemuela | Spanish CNCzone | 1 | 11-23-2010 02:15 PM |
| Construyendo mi primer Maquina. | bernardo | Spanish CNCzone | 18 | 11-16-2009 08:48 AM |
| Newbie- ISO Surface Grinding Primer | r11449 | General Metalwork Discussion | 2 | 03-21-2009 12:04 PM |
| A Primer on Soldering | kreutz | General Electronics Discussion | 0 | 03-17-2008 07:00 PM |