Understanding G-Code Basics
G-Code is a language used by most RepRap 3D printers and their firmware as a set of basic instructions for completing a printing task, for example go to home positions, heat extruder to 200C, heat bed to 60C, move x, move y, move z, display message and many more may be used by your printer.
Note: Some machines such as Makerbot, XYZ, Da Vinci and Dremel printers use their own standard code and this may not be relevant to you.
These instructions are usually automatically created by your slicing software when it exports your model for printing, the code is automatically generated and you may find that you never need to use G-Code.
Some slicing software such as Simplify3D allow you to edit G-Code at different stages of your print for example, start-up, layer changes, retraction, tool changes and ending scripts.
Here are a few examples of G-Code
Take caution when editing or writing your code! It may be possible for you to damage your printer if you programs exceed the limits or your hardware.
G28 tells the printer to home all axis
G28 x tells the printer to home on the x-axis only
M104 S200 M104 = extruder and S200 is set temperature to 200C, setting S0 will turn off extruder.
M140 S60 M140 = bed and S60 is set temperature to 60C, setting S0 will turn off bed.
M84 tells the printer to disable motors
M117 Hello World; displays message Hello World if your printer has a LCD screen.
M300 play an audible beep sound if your printer has a buzzer.
This is just a few of many more commands possible in G-Code to find more about programming in G-Code on RepRap machines then please visit RepRap.org
Here is a Cheat Sheet PDF file provided by Thingiverse.
Products from Amazon.co.uk
Price: Check on Amazon
Price: £24.29Was: £26.99
Price: £12.99Was: £15.99
Price: £14.44Was: £21.99
Price: £20.20Was: £31.50
Thanks for reading this post! Have you experimented with G-Code in the past, what experiences do you have? We would love to hear about it below.