7.3 C
Sunday, December 3, 2023
HomeCNC Router MachineTOP FIVE ** MUST KNOW ** G Codes You Will Use For...

TOP FIVE ** MUST KNOW ** G Codes You Will Use For & How To Use Them on your cnc, Router Laser, gcode


Related stories


Timestamps listed below

Please support what I do to help others like you learn about the incredibly fun world of CNC: https://www.paypal.me/garrettfromme

This video covers the basic codes you need to know for CNC. They are G0, G1, G20, G21 & G28

If you are new to CNC, you must understand G-code and the top 5 codes you will need to know.

G-code is the language CNC machines use to move through various motions. In other words, if you want the machine to move, it must have g code commands to tell it how to move.

this video covers the top 5 you will need to know about when getting into CNC machining or routing.

This CNC code will get you started in your CNC endeavor.

The top 5 G-codes you must know in CNC are:
G0 – Linear rapid motion
G1 – Linear feed rate
G28 – Rapid to the home position
G20 – The machine will move in inches
G21 – the machine will move in millimeters

G0 & G1 – 1:11
G28 – 7:12
G20 & G21 – 8:33

G-code and CNC machines are married. They cannot work without each other.

these work in any CNC machine that uses gcode, including routers and lasers.

This works for all CNC machines, routers, lasers, bobscnc, shapeoko, x-carve, xcarve, etc

Garrett Fromme
Facebook: https://fb.me/IDCWoodcraft
Website: www.idcwoodcraft.com
Email: support@idcwoodcraft.com

#gcode #cnc #g-code



- Never miss a story with notifications

- Gain full access to our premium content

- Browse free from up to 5 devices at once

Latest stories



  1. This is a great video Garrett, I saw that know one talks about understanding Gcode on CNC Routers/Mill so I've been very burdened to make a video teaching some baby steps on this topic on the Longmill. I read your recent email stating that people don't need to know much about Gcode (I RESPECTFULLY DISSAGREE) I love all your videos and believe you have the best channel hands down so please don't take offense. I'm a CNC machinist at Air Tractor building airplanes so I'm lucky to see and write Gcode on a daily basis. If I can help just one person I believe it's worth it. Thanks for all you do. I'll be using the HOG endmill on my video today…LOL

  2. Hello Dear , possible help to solve a problem on my diy CNC ?

    problem is , the Z axis going down to make collision when machine start to move after I fix well the milling tool on top of the material block , I think it should be going up on first step then going down to start milling , hope can help on this , thank you very much .Regards John

  3. whooooa I think you just solved an issue I was having with the G20 and G21 translations… I uploaded filed to cut but it would move an almost imprecievable distance. I'll have to explore it when I'm at home.

  4. For the past four months I never had to deal with G code with Vectrics and the Laguna Swift. Now I purchased a MillRight Power Route CNC and I'm in the G code and Universal G-code Sender universe. It has been a challenge setting up the sender and dealing with the g code and errors. Thank you for simply explaining these 5 basic g codes! Take care!

  5. We use G53 instead of G28 to send are CNC milling machines to home position. This is so you don't have use G0 G91 G28 X0 Y0 Z0;
    Just use G0 G53 X0 Y0 Z0; to send home and machine stays in absolute so you don't stay in incremental by mistake. Also use standard (inch) mode because we use measuring tools that read in inches and metric to inches conversion is a simple conversion formula.

  6. Hi Garrett,
    Is it possible to add the home command ($H) when i am in Vectric? Its easy enough to make the addition when completed in my gcde location but wanted to complete this in Vectric before saving.

Comments are closed.