O'Reilly logo

3D Printing with RepRap Cookbook by Richard Salinas

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Basic G-code commands

Most people do not need to learn G-code. This is why we have a slicer to do all of the work. However, there are a handful of G-code commands that are useful to know. All of these commands are useful while printing and can be entered by way of the host command line. Refer to the following commands:

  • G1: This command designates a controlled move. Here's an example of the G1 command-line syntax: G1 X200 Y200 Z100 F500. The X and Y motors should move the extruder 200 mm from the home position and at 500 mm/min (F500). We'll see shortly how this command is a useful one.
  • M302: This command disables the cold extrusion prevention. This is very useful when testing the extruder movement without heating the filament. This allows the extruder ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required