<p>When using <code>G1</code> command in G-code, what is the difference between <code>Z</code>- axis and <code>E</code>- axis?</p>

<p>I see all <code>E</code>, <code>F</code> and <code>Z</code> in</p>

<pre><code>G1 Z0.350 F7800.000
G1 E-2.00000 F2400.00000
G92 E0
G1 X96.753 Y95.367 F7800.000
G1 E2.00000 F2400.00000
</code></pre>

[{'answer_id': 5448, 'author': 'fred_dot_u', 'author_id': 854, 'author_profile': 'https://3dprinting.stackexchange.com/users/854', 'pm_score': 2, 'selected': False, 'text': '<p>z-axis refers typically to vertical movement</p>\n\n<p>F references are feed rates/movement rates</p>\n\n<p>E references are for the extruder, referencing the amount and speed to eject filament, negative e-values are retraction commands</p>\n'}, {'answer_id': 5450, 'author': 'mac', 'author_id': 9134, 'author_profile': 'https://3dprinting.stackexchange.com/users/9134', 'pm_score': 4, 'selected': True, 'text': '<p>G-CODE can be confusing as historically it was <a href="http://ws680.nist.gov/publication/get_pdf.cfm?pub_id=823374" rel="noreferrer">developed for machining tools</a> rather than FDM printers, and thus:</p>\n\n<ul>\n<li>not all available commands make sense for a 3D printer</li>\n<li>some of the command do slightly different things than those one may intuitively think they do.</li>\n</ul>\n\n<p>Typically, Cartesian printers use 4 "axis": <code>X</code>, <code>Y</code> and <code>Z</code> for moving the printhead in space and <code>E</code> for "extruder".  The "extruder axis" is not in fact at all an axis in the geometrical sense of the word: it refers to the amount of filament to be moved into (extruded) or out of (retracted) the printing head.  The reason why it is considered an "axis" is that it is used in conjunction with the codes <code>G0</code> and <code>G1</code> which are for movement.</p>\n\n<p>Confusingly, the letter <code>E</code> is <a href="https://en.wikipedia.org/wiki/G-code#Letter_addresses" rel="noreferrer">used for the precision feedrate of lathes</a> but in the 3D printing world we rather use <code>F</code> to that purpose.  As a non-native English speaker, I was further confused, because for the longest time I thought "feedrate" was referring to the amount of filament <em>fed</em> to the printing head, while in fact it is the speed at which the printing head moves (in mm/minute).</p>\n\n<p>So to summarise, your example code "translated" would look like this:</p>\n\n<pre><code>G1 Z0.350 F7800.000           ; move up 350 microns at 7.8 m/min\nG1 E-2.00000 F2400.00000      ; retract 2mm of filament at 2.4 m/min\nG92 E0                        ; reset the extruder position\nG1 X96.753 Y95.367 F7800.000  ; move to X,Y (without changing Z) at 7.8 m/min\n</code></pre>\n\n<p>Should you wish to dig deeper into the topic, the <a href="http://reprap.org/wiki/G-code" rel="noreferrer">RepRap wiki page on gcode</a> is rather comprehensive.  Mind that several manufacturers add their own "special codes" to the common ones....</p>\n'}]
['https://3dprinting.stackexchange.com/questions/5447', 'https://3dprinting.stackexchange.com', 'https://3dprinting.stackexchange.com/users/9887/']