Print won't stop when it's done
-
Ok, so I just worked through the hardware issues of my initial installation of the DuetWifi on my Monoprice Maker Select v2 (Wanhao i3 clone), and did my first test print, which was that 20mm cube with X and Y and some circular indentations in the side that people use to test for ringing.
The print came out just fine, but when it was done printing, the print head simply did a filament retraction and stopped moving. The print head didn't move off to one corner as it always did with the Melzi, and the print monitor in the Duet Wifi control web page showed the print still in progress, though the hot head temperature started dropping. I couldn't cancel it. I hit the pause button but never got the cancel button. Also, I couldn't control the XYZ axes to move the print head out of the way manually, so I finally had to shut the board down and restart it.
Is there some configuration that has to be done to get this DuetWifi board to stop a print when it gets to the end, move the print head off to the side, etc.?
Btw the slicer I had used was Cura 2.3, and I've never had this issue before with either that same print, or with any other print, in the couple of months or so that I've had this printer.
-
Please post the last 20 or so lines of gcode in the file you printed.
-
G0 X91.111 Y92.736
G0 F7200 X91.181 Y92.1
G1 F2400 X92.099 Y91.182 E1576.67799
G0 X92.169 Y91.112
;TIME_ELAPSED:1274.312186
G1 F1500 E1575.17799
M107
M104 S0 ;extruder heater off
M140 S0 ;heated bed heater off (if you have it)
G91 ;relative positioning
G1 E-1 F300 ;retract the filament a bit before lifting the nozzle, to release some of the pressure
G1 Z+0.5 E-5 X-20 Y-20 F9000 ;move Z up a bit and retract filament even more
G28 X0 Y0 ;move X/Y to min endstops, so the head is out of the way
M84 ;steppers off
G90 ;absolute positioning
M104 S0
;End of GcodeIt looks like the G28 X0 Y0 should move the head out of the way, yet that didn't happen. It just stopped and the
-
Ok, I just printed a little test pattern, and here's what I observed. When the print ended and it attempted to retract, the retraction went on for like 15 or 20 seconds. I could look down through the crack between the extruder lever and the extruder plate and see the gear rotating backwards. Eventually it pulled the filament completely out, as if I'd pulled it out manually while changing filaments.
It then did, eventually, home X and Y. The little window in the web interface that says "printing" never went away. I was able to control the printer again.
I'm pretty sure this has to do with the retraction instruction at the end of the gcode, but I don't know what.
-
In your end gcode, add M83 after the G91 command.
-
Hmm, ok, extruder to relative mode. I see what you mean. With the G91 all the axes, including the extruder, went into absolute mode, and then E-1 and E-5 tell it to go to absolute -1 and -5mm. For the extremely small test program I just ran, that only took 20 seconds or so, but for the test cube I did earlier it would have tried to extract for many minutes, which is why I thought it was hung up.
The question is, is the DuetWifi different in treating the extruder the same as a normal axis? The Melzi board this printer had originally didn't retract in absolute mode, even though the gcode is exactly the same.
And is there a way you know of to make Cura add the M83 after the G91 so that the extruder interprets the following G1s as relative in the case of the extruder? I'd hate to have to manually add this to the end of everything I print.
-
You will find the G91 and other print end commands in the ending gcode configuration in Cura.
-
Done! Found it under the printer configuration. I've only been 3D printing for a couple months now, and still learning new things every day. I had no idea there was this start and end gcode configurator in Cura until I went looking for it after your previous post.
Thanks!
I have one more issue that I know of now, which is that my paneldue 7" lcd isn't working right, but I'll post that in a separate thread.
I appreciate the help. This upgrade to the DuetWifi from the Melzi board wasn't for the faint of heart, but it was totally doable, and I'm just about there, and blown away by how eery it is not to hear my printer other than the fans. I was just lying on the couch and had to peek my head around the corner just to make sure my print was still going, because I'm used to hearing it loudly, and now I just don't.