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 theG1
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 motor to run when the hot end is colder than a firmware-specified temperature.M106
: This command turns the cooling fan on. When used with anS
parameter between 0-255, the speed can be adjusted. Here's an example of theM106
command...