Welcome! Log In Create A New Profile

Advanced

Problem with G1 command

Posted by CDorn 
Problem with G1 command
March 07, 2022 04:43AM
Hello there smiling smiley
So the problem is as follows:
when I manually send a G1 command like (G1 F200 E1) the printer extrudes nice and slow but 'retracts' to the starting position very fast.
Anytime I extrude a certain length of filament, the extruder retracts the same length it seems.
What could be the cause and how can I stop that from happening? smiling smiley

For more Info on how I initialise the Printer:
M104 S230
M105
M109 S230
M82
G28
G92 E0
G1 F200 E3
G92 E0
G92 E0
G92 E0
Re: Problem with G1 command
March 07, 2022 06:03AM
There is nothing that should be able to cause this

Send a M114 before and after the G1 E move, see where the printer think it is afterwards
Re: Problem with G1 command
March 07, 2022 07:30AM
Good Idea,
I will answer when I'm done.
Re: Problem with G1 command
March 07, 2022 07:43AM
>>> M114
X:0.00 Y:0.00 Z:0.00 E:5.00 Count X:0 Y:0 Z:0

>>> G1 E1

>>> M114
X:0.00 Y:0.00 Z:0.00 E:5.00 Count X:0 Y:0 Z:0

So as you can see the extruder definetly drives back to that position...

What am I doing wrong?

EDIT: I found out that if I load a whole .gcode-file, the extruder will print normally. But if I stop it, it will revert back to position E5. Is this some preset where the printer will drive back to a 'start' position, when he thinks hes done?

Edited 1 time(s). Last edit at 03/07/2022 08:00AM by CDorn.
Re: Problem with G1 command
March 08, 2022 03:52AM
What firmware does your printer use?



Large delta printer [miscsolutions.wordpress.com], E3D tool changer, Robotdigg SCARA printer, Crane Quad and Ormerod

Disclosure: I design Duet electronics and work on RepRapFirmware, [duet3d.com].
Re: Problem with G1 command
March 08, 2022 05:59AM
So I have a Ramps1.4 on top of Arduino Mega. The firmware is Marlin 2.0.x.
On my PC I use python with the pyserial-library.

With the ramps-board I controll the Extruder and a fan and the temerature. No x,y,z-axis. Could that be part of the problem?

On further testing I somewhat replicated the problem: When I send consecutive G1 E.. commands the extruder works just fine. But as soon as I stop sending the G1 commands it retracts to the position E5..
Is this a "the print is finished, revert to home position" kind of deal?

Edited 1 time(s). Last edit at 03/08/2022 08:47AM by CDorn.
Re: Problem with G1 command
March 09, 2022 05:59AM
Does anybody have an answer? confused smiley
Re: Problem with G1 command
March 09, 2022 07:28AM
please attach your config files.
Re: Problem with G1 command
March 15, 2022 04:05AM
Here they are smiling smiley
Attachments:
open | download - Configuration.h (108.2 KB)
open | download - Configuration_adv.h (167.3 KB)
Re: Problem with G1 command
March 15, 2022 04:38AM
Using your configs, I cannot replicate this issue

First I M302 P1 , as im testing without a hotend
and this allows cold extrusion

M114
> X:0.00 Y:0.00 Z:0.00 E:0.00 Count X:0 Y:0 Z:0

G1 E1
M114
> X:0.00 Y:0.00 Z:0.00 E:1.00 Count X:0 Y:0 Z:0

G1 E1
M114
> X:0.00 Y:0.00 Z:0.00 E:1.00 Count X:0 Y:0 Z:0

So Extruder is in absolute position mode, so G1 E1 means go to absolute position E1, which is fine

G91 set to relative mode

G1 E1
M114
> X:0.00 Y:0.00 Z:0.00 E:2.00 Count X:0 Y:0 Z:0

G1 E1
M114
> X:0.00 Y:0.00 Z:0.00 E:3.00 Count X:0 Y:0 Z:0

etc
Sorry, only registered users may post in this forum.

Click here to login