G1 X200 Y200 Z200 F10000
This means: perform a coordinated movement (G1) such that the X, Y and Z axis will be 200mm away from their home positions (X200 Y200 Z200) and do so at a feedrate of 10000mm/s (F10000)
The coordinated movement will actually go far less than 10000 mm/s because there is something of a "speed limit" set in the machine's firmware. So F10000 really is our way of saying "go as fast as you safely can."
Gcode gets much more complex than this. As part of it, there are a whole family of terms that are known as M-codes. M-codes control various operating aspects of the machine. For example:
This means: Heat up the printer (M104) to 185 degrees Celsius (S185).
In your printer control software, there is a command line through which you can send GCode to the machine manually, in some cases during a print. (During a print, if needed, almost always will you be sending M-codes).
In Pronterface, you can create custom buttons that will send frequently used GCode commands to your printer. To do so, right-arrow click either the "SD" "Print" or "Pause" button and choose "Add custom button". Since I use these machines all the time, as well as do quality assurance tests on them, I have a lot of buttons. Here's what mine looks like:
As you can see, I have lots of buttons, grouped by color.
The Yellow ones are all about coordinated movement--moving the machine while it's not printing. This is fantastic for bed leveling (move to the 4 corners) and moving to what I call a 'safety position' after a failure, assuming the failure IS NOT more than a few inches tall when it fails.
Red and Blue are about cooling systems for the extruder.
Cyan and Magenta are concerned with the temperature hot end.
Green buttons are somewhat miscellaneous. I'll explain them a moment. Here are what each of the button do and why:
By the way in hex color code:
Yellow is #FFFF00
Red is #FF0000
Blue is #0000FF
Green is #00FF00
Magenta is #FF00FF
and Cyan is #00FFFF
You need to know the hex code of the color you want to specify it when adding the custom button.
"XY Front Left"
The Command is
G1 X0 Y0 F10000
"XY Front Right"
G1 X260 Y0 F10000
"XY Rear Right"
G1 X260 Y230 F10000
"XY Rear Left"
G1 X0 Y230 F10000
I use the above commands for bed leveling. Highly recommend it. Just remember to do it while your extruder is cold, or you'll risk melting the platform!
"X130 Y115 Z115"
G1 X130 Y115 Z115 F10000
The above is my safety position, which is the special center of the work area. Not to be used unless the failure print is shorter than 115mm, which is almost always the case.
For turning the extruder cooling fan on or off. "S100" refers to a percentage. You can PWM your fan (though there is no functional benefit in the current Series 1 design). For example, half speed would be "M106 S50". The fan needs enough constant voltage to stay running, so don't expect it to work below S30ish without a helping spin.
"Heat to 185C"
"Heat to 195C" is just the same thing with the different number, and "Heat OFF" is the same but with a zero instead.
G1 Z115 F10000
Moves the platform so that it's 115mm away from the hot end. "Z25" would be "G1 Z25 F10000".
G28 is the homing command. (Your machine does this at the beginning of every print.) Sending G28 alone will home all axes. You have to specify which ones you want to home as shown above. There is no feedrate in a G28 command because the firmware specifies the homing speed.
"Allow Cold Extrusion"
I use this for testing purposes. When I need to see if the polarity of my E-motor is correct (if its hooked up right) I plug the motor in, press this button, and then do a test extrusion with no filament loaded. It checks out if it goes in the right direction. M302 disables what's called "Cold Extrusion Prevention" where the E-Motor is disabled when the hot end is colder than a firmware specified temperature to reduce the risk of clogging and related mechanical errors.
There are so many different G and M codes is Marlin, and I encourage everybody to make custom buttons and get comfortable with them. It's really quite easy to learn.
Go forth and GCode!
https://docs.google.com/document/d/1px- ... w58pz36c0d