What is G-Code
What is 'G-code'?
GCodes is a text based protocol that is generated based on a 3D model. These instructions can be sent to a machine that will interpret these lines and execute them one by one. The GCode instructions frequently have an X, Y and Z coordinate, these are the points in 3D space that the printhead will move in. Additionally, there is a speed setting, called the 'feedrate'.
Here is an example piece of GCode:
G1 X0.0 Y0.0 Z0.0 G1 X10.0 Y10.0 Z0.0 F1000
Through this piece of GCode, the tool will be moved from its current position to X, Y and Z position 0.0. This will happen at the last speed setting (feedrate, F) that was sent. Then, it will move to position 10, 10, 0 (X, Y, Z) at feedrate 1000. Distances are in milimeters or inches, depending on the configuration of the machine. The feedrate is mm/min or inch/min.
Complete Reprap G-code reference
A complete overview of reprap Gcode, including what each command means etc, can be found here: http://reprap.org/wiki/G-code
GCode is generated by the printing software on your computer. For ReplicatorG this happens through the program called Skeinforge, which is integrated. You can configure skeinforge to add explanations to the G-Codes, so you can more easily learn about them and understand what is happening on your machine. See below.
These are the steps you can take:
- Select your profile and click 'Edit...'
- Select 'Analyze'
- Select 'Activate Comment'
- 'Save All'
- Generate the GCode again to see the comments included