iSnare.com - Free Content Articles Directory
Authors Contents [Advanced Search][Add OpenSearch][Job Search]
Distribute your articles to thousands of article sites for only $2 and below! Read more...

Index  Business
 

G-Codes, M-Codes And Do I Have To Be An Expert On Them?

 
[ Contact the Author] [ Send to a Friend] [ Article Publisher] [Make PDF] [ Print] [ Bookmark & Share]
 
Read our Terms of Service before reprinting this article. The submitter specified above has claimed the rights to this article.
Ivan Irons

What is an M-Code?

M-Codes are related to G-Codes. M-Codes control different machine functions. Some of these functions are turning the machine on and off. 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 wouldn’t need an M-Code to turn a spindle on and off though. Hey, the machine doesn’t even have a spindle.

Do I need to be a G-Code Expert?

In a word, no. You will probably need to know how to quickly scan your G-Code if you are having problems during your machining simulation. Other then that G-Code and a CNC program are throwaway programs for the most part. What do I mean by that? Let me explain.

Let’s look at a specific design. Let’s say a 12” by 12” square. You build your model, run it through your CAM Software and create a CNC Program made up of G-Code instructions to your machine. Say tomorrow the job requirements change to a 24” by 24” square. Do you go into your G-Code line by line and change the code? Most people wouldn’t. They would go back into their CAD or CAM program and scale the square up to 24” by 24”. Then post-process the job again to get their G-Code program.

There are some people that would do this line by line because the design is simple. Now think of a complex shape and what scaling it up or down would entail. Massive changes to the G-Code and reviewing it line by line. We are talking thousands of lines here vs. going back and quickly scaling the model and spitting out some new G-Code. And that is why G-Code is throwaway. Use it over and over when you can, but don’t fret over archiving it if something changes. It is much better to make a copy of the design (CAD File) in its original state and save that somewhere. That is much more useful.

Post Processing - Ok, you have me worried. With all the variations in G-Codes and M-Codes, how will I ever keep it straight?

Don’t worry about that. The CAM program you choose will have many Post Processors. Post Processors are like translators. They help the CAM Program spit out the right G-Codes for your specific machine. All you have to do is select the right Post Processor before you spit out the G-Code. That is simple.

Most CAM programs have many machine specific post processors already loaded. All you do is to the list of them and click on your machine to select it. If you build your own machine, there are generic post processors loaded for different types of machines. Usually you pick a generic one and modify it a bit with a little testing. You are making sure a move in the X-Axis positive direction really means what you want it to mean.

Important NoticeDISCLAIMER: All information, content, and data in this article are sole opinions and/or findings of the individual user or organization that registered and submitted this article at Isnare.com without any fee. The article is strictly for educational or entertainment purposes only and should not be used in any way, implemented or applied without consultation from a professional. We at Isnare.com do not, in anyway, contribute or include our own findings, facts and opinions in any articles presented in this site. Publishing this article does not constitute Isnare.com's support or sponsorship for this article. Isnare.com is an article publishing service. Please read our Terms of Service for more information.

Ivan Irons is a CNC Router Maker and CAD Designer. He runs http://www.cncinformation.com, which is focused on delivering CNC Information to everyone.

Article Tags: gcode [See Dictionary], line [See Dictionary], machine [See Dictionary]
Got a question about this article? Ask the community!
Article published on August 29, 2007 at Isnare.com
 
Rate [Ratings: 5 / 5] [Votes: 2]

What Is G-Code And How Does It Fit With CNC?
Submitted by: Ivan Irons

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...

How Do You Get Businesses Interested in Advertising on a Local Business Directory?
Submitted by: Adriana Noton

Online business directories are popular sites to list one’s business These directories allow the owner to generate an income and increase their online visibility...

How to Create Online Business Directories With Web Software
Submitted by: Adriana Noton

Business Directory Software has become a popular way of setting up and running an online business directory...

How to Write a Business Plan For an Online Business Directory
Submitted by: Adriana Noton

Writing a business plan for an online business directory is as important as writing a business plan for any type of business...

Tips On How To Buy And Sell Online Business Directories
Submitted by: Adriana Noton

There are many reasons why one would sell or buy an online business directory For those who are selling, you know that you have spent a lot of time collecting businesses to post their listings, so you want to make sure that you get a good price for the directory...

What Are the Benefits of Restaurant Franchise Investments
Submitted by: A.Noton

The restaurant industry as a whole is one of the toughest things to get into While the failure rate is high, it is not so much the industry as it is the people that are investing in it...

Tips on How to Monetize an Online Business Directory
Submitted by: Adriana Noton

There is more to establishing an online business directory than just improving your search engine rankings...

Lean More About Make Money Online 101 Top Tips
Submitted by: Alan Williams

Well, let me make a guess…you want to come out of your corporate cubicle and sign up as a web worker to make money online...

The Best of 101 Online Marketing Tips for the Newbie to Make Money
Submitted by: Alan Williams

Hey…let me make a guess…at this hour you are looking for some great ideas to make money on line Being a newbie, you may initially think that making money online is a challenging venture...

Affiliate Marketing Or Network Marketing: Which One to Go For
Submitted by: Alan Williams

“Should I go for affiliate marketing or network marketing”…tell me, how many a times you have come across these thoughts...

Get Free Affiliate Marketing Tips
Submitted by: Alan Williams

One of the best online home businesses to start off with is undoubtedly affiliate marketing This lucrative venture gives you a steady and consistent income by operating from the comforts of your home...

The Recession in Downpatrick
Submitted by: Amy Activ

At one point during it's history, Downpatrick was a bustling centre of business activity – the town even had a direct transport link with Liverpool via a steamer which departed from Quoile Quay...

Make Money With Affiliate Marketing Online
Submitted by: Alan Williams

Making money online is a very safe and effective way to earn a steady and consistent income There are many business opportunities on the internet today and you just need to take your pick...

Know More About the Definition of Affiliate Marketing
Submitted by: Alan Williams

“Affiliate Marketing “is a term that is gaining a lot of prominence today and it rightly deserves its reputation of being one of the most profitable and lucrative online business...

What to Do When a Loved One Dies on an Important Business Trip You Cannot Leave
Submitted by: Lawrence Reaves

Nobody wants to receive a call informing them that a loved one has passed on, but when it occurs during an important business trip that you cannot leave it is even worse...

Home Internet Based Business Opportunity: Why Do Some People Fail?
Submitted by: Low Jeremy

In the recent years when there were people seen losing their jobs and been devastatingly affected by the economic downturn, a home internet based business opportunity seemed the perfect option...

Isnare.com Footer Divider

© 2004-2009. Isnare Free Articles - An Isnare Online Technologies Free Articles Project. All Rights Reserved.   Privacy Policy