4
$\begingroup$

I was in the process of printing a 16 hour print, but I must have failed to copy the G-code correctly, because the print stopped after 107 of 223 layers. Looking at the G-code, It also stops there.

However, I had the full G-code on my computer, and decided to try and resume the print from layer 108. It seemed to work, with the exception of a little excess extrusion at a single point in the beginning, but after three layers, i noticed that it wasn't extruding anymore. I am not completely positive that it isn't due to nozzle jamming, but I have a strong feeling that the problem is the G-code itself, as it does extrude some plastic just before printing starts.

Here are the first lines of my manually edited G-code. Can anyone see why I get the blob in the beginning, or why I don't get anything at all later on? Or does it look good, and my problem is probably the nozzle?

;FLAVOR:UltiGCode
;TIME:60308
;MATERIAL:119047
;MATERIAL2:0
;NOZZLE_DIAMETER:0.400000
;NOZZLE_DIAMETER2:0.400000
;MTYPE:PLA

;Layer count: 222
;LAYER:109
G0 F9000 X208.213 Y107.948 Z16.610
;TYPE:FILL
G1 F3600 X210.390 Y105.771 E4104.65185
G0 F9000 X210.390 Y103.170
G1 F3600 X168.331 Y61.111 E4107.77457
G0 F9000 X167.074 Y61.111
G1 F3600 X120.237 Y107.949 E4111.25208
G0 F9000 X121.695 Y107.949
G1 F3600 X74.857 Y61.111 E4114.72962
G0 F9000 X73.600 Y61.111
G1 F3600 X26.763 Y107.948 E4118.20709
$\endgroup$

3 Answers 3

3
$\begingroup$

According to the RepRap.org list of G-Code commands, see G0 & G1: Move:

The Ennn command is The amount to extrude between the starting point and ending point.

However, according to this a discussion, that is now deleted from GitHub, about the Cura slicing engine:

The E values are in absolute mode, so perhaps the firmware is attempting to move the stepper motor to the absolute position (which is almost 50% through your print). This may lead to clogging or skipping depending on how hot your extruder is at that point.

As a last resort, you can perform a Boolean subtract on your model of the section that's already printed and re-slice the model to print the remaining bit. Then glue, or ABS weld, the remaining piece to the main print. I've done this in the past, it's not super glamorous, but it gets the job done if the part doesn't require a lot of structural integrity.

I was incorrect with the following statements with regard to the Cura slicing engine:

It's been a while since I've looked at 3D printer G-Code, but from what I remember, E values can be the bane of any manually written G-Code. Usually the slicing engine generates the E value as an incremental step value throughout the G-Code (at least this was true for Skeinforge and early MakerWare, please verify this). So, if the value is incremental and depending on the controller, this value could be lost or corrupt if a new print is initialized.

I would hope, that if you're using a slicing engine's custom G-Code input, that the software would be able to compensate situations like this and reformat your provided G-Code to match the value of E or any similar command.

$\endgroup$
7
  • $\begingroup$ I have not edited any codes, except removing layers 0-108 $\endgroup$
    – user1104
    Commented Mar 22, 2016 at 15:26
  • $\begingroup$ In removing those lines of code, you would have needed to stop the errant print, remove lines 0-108, re-upload the GCode file, and re-initialize the printer for the new GCode file. In doing so, the value for E is lost after stopping the print. I believe that E sets the position of the stepper motor. I think, in "losing" this value, you won't be able to pick up where you left off. There might be a function in some slicing engines to pick up at a specific line. $\endgroup$
    – tbm0115
    Commented Mar 22, 2016 at 15:31
  • $\begingroup$ it does follow the correct path, it just won't extrude filament $\endgroup$
    – user1104
    Commented Mar 22, 2016 at 15:36
  • $\begingroup$ Yes, the machine will follow the correct Cartesian coordinates (XYZ) because they are written in Absolute coordinates. The E value (for the stepper motor and/or distance between nozzles depending on the machine), I believe is written in Incremental coordinates. This would explain why the machine moves to the correct location, but may hang up on extruding. I'll try finding some more information for you to hopefully explain better. $\endgroup$
    – tbm0115
    Commented Mar 22, 2016 at 15:38
  • $\begingroup$ Please regard this where it refers to the E command as The amount to extrude between the starting point and ending point meaning that it refers to the previous E value to determine how much filament is extruded. $\endgroup$
    – tbm0115
    Commented Mar 22, 2016 at 15:43
2
$\begingroup$

I know this is an old thread but I have been running into similar issues with my delta machine with Marlin firmware.

Not all printers running Marlin ignore large E (extruder) moves. G-code has always (even in CNC machines) run commands from were the motors are now, to the value in the G-code line. For example, G0 X10 will move the X motor 10 units. The units are set through G20 or G21.

When your machine has lost power, you need to re-home all axes in order for the machine to know where it is. If you don't, it will likely think that it currently is at 0, 0, 0, 0. Then when you have the line,

G1 F3600 X210.390 Y105.771 E4104.65185 

it will try to go from 0,0,0,0 to 210.390, 105.771, 0, 4104.65185 at the feed rate of 3600. Therefore it is always good to home after power loss and add a G92 E4104.4 (last line ran before power loss) even if your machine may not need it.

Good habits make for less mistakes.

$\endgroup$
1
$\begingroup$

Is the hotend temperature set correctly? If you only preheat the hotend but then turn it off, it will behave exactly as you described (while you're above EXTRUDE_MINTEMP it will behave normally, but once the temperature drops too low it will continue doing the XYZ-moves, but stop extruding). Perhaps you need to add a M109 command to set the temperature properly.

In his answer, tbm0115 mentions absolute and relative coordinates. Whether absolute or relative coordinates are used is set using the G90/G91 commands and will always be the same for all axes (XYZ and E). He also mentions that:

so perhaps the firmware is attempting to move the stepper motor to the absolute position (which is almost 50% thru your print). This may lead to clogging or skipping depending on how hot your extruder is at that point.

This shouldn't happen, as extremely long extrude moves are ignored by Marlin. When the printer encounters

G1 F3600 X210.390 Y105.771 E4104.65185

it performs only the XYZ-part of the move, but doesn't move the extruder (assuming the printer was reset and the current extruder position is 0). However, it does update the internal value for the extruder position, so the next move happens normally. Perhaps missing the initial extrude segment isn't a big deal, but if you want the print to resume perfectly where you left off, you should add a G92 command to the beginning to initialize the extruder position correctly, for example:

G92 E4104.4

(but the exact value depends on the last extruder position in the previous layer).

$\endgroup$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .