learn cnc programs

G-Code is the common name for the programming language of CNC Machines.  Somewhat of a generic, catch-all type of term for CNC programming language.  Very few machines adhere to this standard today.  There are as many varations as there are manufacturers.

This is how I think of G-Code.  It is a simple language built off of the Cartesian Coordinate System for motion control.  That is a mouthful.  I don’t know if that is exactly right, but you will get my meaning in a second when we go through some code line by line.You will remember your high school geometry lessons very quickly.  For the real pros out there, you know there is much more to G-Code then that, but it is a good place to start thinking about it.

You see many different variations of the name G-Code:
Gcode
G-Code
G-Code
g-code
G Code
G-Code

Are there other “Codes?”
In a word…Yes.  We will get to that in a moment.  G-code is also the name of any command in a CNC program that begins with the letter G.  G-Codes generally tell the machine to perform an action.  G-Codes can tell machines to move a certain distance in the X-Axis for example.Or, make a quick move to another location.  Or, move in an arcing fashion while milling.  An on and on and on.

Here are some examples of G-Codes
Remember these codes change to a certain degree between CAM Software packages and CNC Machine Manufacturers.
G00 Rapid positioning
G01 Linear interpolation
G02 CW circular interpolation
G03 CCW circular interpolation
G04 Dwell
G20 Programming in inches
G21 Programming in mm
G28 Return to home position
G40 Tool radius compensation off
G41 Tool radius compensation left
G42 Tool radius compensation right
G43 Tool offset compensation positive
G44 Tool offset compensation negative

Related Information To This Article...

#1: The Black Swan: The Impact of the Highly Improbable - Mon, 15 Dec 2008

The Black Swan: The Impact of the Highly Improbable
The Black Swan: The Impact of the Highly Improbable
by Nassim Nicholas Taleb (Author)
Average Customer Review:

Buy new: $27.00 $17.82
77 used & new from $14.99

(Ranking is updated hourly. Visit the Bestsellers in Computers & Internet list for authoritative information on this product's current rank.)

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Why does the G-Code program file change?
We humans like flexibility.  We also like standards.  G-Codes are standardized in a certain sense.Once you're able to read G-Code, you can begin to read different variations on it.  That is the standardized part.
All machines are not created alike.  Even identical machines are different to a certain degree.  They may not have the same tools loaded or they have been slightly modified to produce a certain type of part.  Interesting how people like to customize.

That is why g-codes are not the same.  You need some flexibility in the programming to accommodate all situations.  Couple that with the fact that every manufacturer thinks their version is the best and you get a myriad of G-Codes out there.

Many manufacturers also try to force you to only use their code.  For example, they give you a design interface to make parts and a CAM interface to produce code.  They lock you into their “Black Box” so you can’t go elsewhere for service and support.  They lock you in their “Family.”  Sometimes they make up a completely different kind of G-Code language that no one can understand but them.  They do that to keep your hands tied up.

What is an M-Code?

M-Codes are related to G-Codes.  M-Codes control different machine functions.Some of these different functions are turning the CNC machine off and on.  Turning the spindle on or off.  Turning a plasma torch on or off.  Turning coolant on or off.  You get the idea.  When programming your CNC machine you may need to perform these functions.
Like G-Code, M-Codes vary from manufacturer to manufacturer and from machine to machine.  As you can imagine you would need an M-Code for turning a plasma torch on and off on a CNC Plasma Cutting Machine.You don't need an M-code to turn a CNC machine spindle on and off though.  Hey, the machine doesn’t even have a spindle.  It’s a plasma cutter!

CNC Information Free Community Site:
If you would like to know more about CNC, head on over to http://www.cncinformation.com
You can join for Free and you get two free CNC ebooks. One e-book is it quick guide of G-Code and the other is a CNC site e-book. You also get access to the Free Video Series...Image to CNC Art when you join the community.

Article Continued Below...

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Best Prices On Related Items From eBay - right Now!

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Article Continued...
Share and Enjoy:
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • Technorati
You might also like to read these...

There are quite a few people that frequently have the need to send and receive faxes. Wouldn’t it be nice if you could have all the benefits of owning a fax machine without having to buy and maintain a fax machine?

If you have online access, then there is a remedy to the traditional fax machine issue. There are many web faxing services that allow you to send and receive faxes via the Internet for a small monthly cost.

Using web faxing has some tremendous advantages over the way faxes have been traditionally sent and received. Probably the…

Continue reading Save Money with Internet Faxing

Click here to learn more about Blogging to the Bank. There are many uses for blogging. In most cases, blogging can be used for advertising. If you own a firm, you can make use of blogs to promote your products or services. The usage of blogging in businesses is gaining popularity because it can establish a company’ credibility and name recognition. The internet is a very competitive arena for online businesses, especially Why You Need Our Free Life Insurance Quotes Online. Many people are now into home-based firmes. There are certain advantages in putting up…

Continue reading You and Your Business Blog

Are you looking for online jobs from home.  Then you should be aware of the programs that work and the programs that do not work.  Online Jobs To Avoid When you look for work online there are many programs that are designed only to take your money. They do not provide any real money making opportunities for you.  The most popular of these programs is the online survey.  Many of these survey sites are professionally designed and look legit.  But the problem is what they offer is not.  They will offer you lists of companies that…

Continue reading Legitimate Work At Home Jobs