Friday, January 11, 2008

What is GCode?

-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 variations 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 soon enough. 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 will see many variations of the G-Code name like:

Gcode
gcode
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 rapid 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

Why does G-Code Change?

We humans like flexibility. We also like standards. G-Codes are standardized in a certain sense. Once you start to be able to read it, you can read just about any flavor of 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 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. It's a plasma cutter!

Ivan is active in Gcode and CNC Programming.

G-Code is one of his expertise.

Labels: , , ,

Thursday, December 6, 2007

Cnc Machine Buying Guide

 

CNC refers to the computer controls of a machine. With the help of a program code, it will be easier to replicate same parts. It is a great innovation in the field of manufacturing that makes mass production more efficient and practical. That is why companies, large or small, must exert effort to find a CNC machine that will best suit their needs.

Here are some tips on how you can get the best CNC machines.

- Buy and choose with the help of buyers representative. A buyers representative has been made to cater to the following needs and give advantages to CNC machine users -

1. To allow users to save time in negotiating

Most people who would buy CNC machines will have to settle with getting quotations from two to three manufacturers to save time and to avoid the hassle of talking to a lot of sales representative.

By asking professional help from someone who knows a lot about CNC machines and manufacturers, you will just coordinate with only one party- the buyers representative. They will be the one who will shoulder all the talking and negotiations for you.

And since they regularly collect updated quotations from the CNC machine manufacturers, it will take lesser time for you to get information regarding the CNC machine of your choice.

2. To check the quality of the products that they are referring to buyers

Buyers representatives exert effort to check that the machines that they will be referring to buyers are of good quality.

3. To offer a large variety of machines from different machine manufacturers

Most people do the common mistake of asking for quotations from the well- known (and expensive) brands in the market when they have the options of buying other brands that are as efficient yet cheaper than the ?mainstream? brands.

Buyers representative offer quotations from less prominent CNC machine manufacturers that has cheaper price as well. In this way, the buyers representative also gives equal playing fields for all CNC machine manufacturers, both in the large- scale and medium scale.

4. To allow buyers opportunities to get the best deal for their money and save some too.

All buyers would like to get the best thing that their money can buy. Also, all buyers would also prefer to save their hard- earned money without sacrificing efficiency and quality. Here are some ways buyers representative can help you save money -

- The buyers representative only charge 5 percent of the cheapest CNC machine that meets the buyers requirements. That is a small price to pay for the assurance that you will get a wonderful CNC machine that will cater to your needs.

- The buyers do not have to settle in buying prominent brands and pay for the brand name. With lesser money to spend, one can get a machine as efficient as the prominent brands.

- By forming buying groups, buyers representative can also negotiate with manufacturing companies to give discounts to prospective buyers.

- With greater competition among the manufacturers, there will be better quality of products and more affordable prices.

- If getting help from buyers representative is not your choice, you can always do it yourself. The general rule in buying CNC machines is to be familiar with all the parts first then everything else will follow.

1. Make sure that the following parts are intact and correctly attached to the CNC machine to ensure the perfect working condition of the machine -

- the safety shield (a plastic that cover that protects the working space),

- the tool or drill bit (the part that does the cutting),

- spindle shaft (the part that holds the tooldrill bit),

- the spindle motor (the part that drives and controls the cutter),

- the vertical or upright column ( holds the pieces together) and

- the control box.

2. Always look for the emergency stop button in your CNC machine. This is to ensure that when an error is made, the machine can be stopped manually to prevent further damages from happening.

3. Big control guides are preferred so it will be easier for user to refer to it. It will also be helpful for operators who have poor eyesight too.

4. The plastic that comprises the shield must be made from sturdy polycarbonate.

For more great cnc related articles and resources check out http://cncinsider.info.

Labels: , , , ,