Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here


CNC programming

CNC programming

CNC programming

Where can I find desbribed
G-code from CNC programming

RE: CNC programming

There are books (can't think of the name, it's still early) that have the ANSI G and M codes.  The best reference is your machine's operations manual, because it will have all the standard G and M codes plus any proprietary codes.  Every controler is different, which are you working with?  I have worked with Mitsubishi, Fanuc and Charmiles; I maybe able to help.

RE: CNC programming

thank you for ansewring me

I know only EIA code
I worked with Picopath Numerical Controler  
for milling  and flame cutting machine.

I need to lern G code in order to get a job
as a CNC programming

Mircea BALAN
Romania ,EUROPE

RE: CNC programming

G code programming is really simple if you're good with math.

There are only a few basic commands, and there is an easy way to remember them.  This was INTENTIONAL when the code was developed!!!

G90 Absolute positioning (The zero looks like a bulls eye..)
G91 Incremental positioning (the "1" looks like an "I")
Absolute - "go to the intersection of 5th and main streets"
Incremental - "go 3 blocks, then turn right, then go 2 more blocks..."

G0 (G00) Rapid positioning (it looks like the word "GO"!)
G1 (G01) Linear interpolation - (the "1" looks like an "L")
G2 (G02) Circular interp.  - (direction is the same as the way you start to write the "2"...)
G3 (G03) Circular interp the other way!  Anti-clockwise

Each machine may be a little different about how you tell it about where the center of the arc is etc.

M0 - stop
M1 - Optional stop (no tricks here...)
M2 - tape rewind or end of program
M3 - spindle on clockwise (always looking down the spindle axis)
M4 - spindle counter clockwise (requires left hand cutters)
M5 - spindle stop
M6 - tool change usually
M7 or M8  turn on coolant (mist or flood)- varies with machine
M9 turn off all coolants


I have to go, but I hope this helped

RE: CNC programming


thanks for ur concerns.

The request was made by imbmd.
I just gave some suggestions.


RE: CNC programming

Although its worth knowing what all the G and M codes are, its not a show stopper if you are not that familier with them.
I am adesign engineer who owns a LeBlond 3-axis CNC mill, I do all my programming in Surfcam, The post processor should if (configured correctly)take care of all the G and M codes. I don't think you need to do any programming training (learning what the G and M codes mean)if you use a software package to write G code. I use Surfcam for even the simplest programming as its just plain faster. If you don't have access to a PC machining programm then you will be limted to the cpmplexity of parts you can write programs for.
If I have a problem with the post-processor outputting bad G code (especially with drilling, tapping, reaming cycles etc) I just get my wife who is a much better CNC driver than I am.
All the G and M codes I have learnt and become familier with is thru de-bugging programs
Dave Cam

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members! Already a Member? Login


Close Box

Join Eng-Tips® Today!

Join your peers on the Internet's largest technical engineering professional community.
It's easy to join and it's free.

Here's Why Members Love Eng-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close