<p>If the printer is in absolute positioning mode (which is used almost exclusively), then the extruder will either wind back or wind forward to the last 5mm point. Effectively, the firmware treats the extruder like any other axis, and you can set the origin whenever and wherever you like (it doesn't have to be the home position). Use G92 to reset the extruder position as follows:</p>

<pre><code>G92 E0 ; Set the extruder position to 0 (origin)
G1 E5  ; Extrude 5mm of filament
G92 E0 ; Set the extruder position to 0 again
</code></pre>

<p>This is the usual way to purge filament in the slicer's start and end code. Note that you cannot rely on the current position being zero.</p>

CC BY-SA 4.0
2018-10-28T23:09:58.687Z
Thank you guys. I will check as soon as i get home.
Mars7272
CC BY-SA 4.0
2018-10-29T01:45:23.990Z
Steps per mm = 200,200,788,200
Mars7272
CC BY-SA 4.0
2018-10-29T01:46:57.480Z
I ran G92 E0, G1 E5 and it is still rotating. I changed out the ramps board and the driver...
Mars7272
CC BY-SA 4.0
2018-10-29T15:14:46.363Z
So... I switched out the stepper motor just to eliminate that variable... Same result. It must be in my firmware. I have reloaded the default I started with months ago...
Mars7272
CC BY-SA 4.0
2018-10-28T02:14:23.197Z
2018-10-28T10:05:26.067Z
2018-10-28T10:05:26.067Z
Mick
<p>When I send <code>G1 E5</code>, the extruder motor rotates, but does not stop. It keeps rotating until I restart the system. I am using a Ramps 1.4 board and OctoPrint.</p>

CC BY-SA 4.0
2018-10-27T22:31:07.013Z
How many steps per millimeter do you have configured in your `Configuration.h` file?
0scar
CC BY-SA 4.0
2018-10-29T15:15:09.893Z
Steps per mm = 200,200,788,200
Mars7272
<extruder><marlin><motor>
Extruder motor does not stop after G1 E5
Mars7272
# Extruder motor does not stop after G1 E5

(Asked by: username_0 on 2018-10-27)

When I send `G1 E5`, the extruder motor rotates, but does not stop. It keeps rotating until I restart the system. I am using a Ramps 1.4 board and OctoPrint.

**Tags:** extruder, marlin, motor

> **Comments:**
> **username_1**: How many steps per millimeter do you have configured in your `Configuration.h` file?  
> **username_0**: Steps per mm = 200,200,788,200  

---

## 1 answers

### Answer by username_2 on 2018-10-28. Score: 3

If the printer is in absolute positioning mode (which is used almost exclusively), then the extruder will either wind back or wind forward to the last 5mm point. Effectively, the firmware treats the extruder like any other axis, and you can set the origin whenever and wherever you like (it doesn't have to be the home position). Use G92 to reset the extruder position as follows:

```
G92 E0 ; Set the extruder position to 0 (origin)
G1 E5  ; Extrude 5mm of filament
G92 E0 ; Set the extruder position to 0 again

```

This is the usual way to purge filament in the slicer's start and end code. Note that you cannot rely on the current position being zero.

> **Comments:**
> **username_0**: Thank you guys. I will check as soon as i get home.  
> **username_0**: Steps per mm = 200,200,788,200  
> **username_0**: I ran G92 E0, G1 E5 and it is still rotating. I changed out the ramps board and the driver...  
> **username_0**: So... I switched out the stepper motor just to eliminate that variable... Same result. It must be in my firmware. I have reloaded the default I started with months ago...  

---

