Print stops midprint; can't reconnect. G-code surgery time!

General discussion topics
Post Reply
swbluto
Posts: 215
Joined: Mon May 25, 2015 7:09 pm

Print stops midprint; can't reconnect. G-code surgery time!

Post by swbluto » Sat Jul 18, 2015 3:36 am

So, I accidentally disconnected my 3d printer and it immediately halted. I tried all I could to reconnect and resume the print in S3D but it couldn't, no matter what. I looked at the logs, saw where it was in the G-code file, and then I did some G-code surgery to create a new g-code file that effectively resumed the print AND... bada bing bada boom, it WORKED!

The "swipe" that s3d does had me worried for a second because it looked like it was going to hit one of the printed objects and caused unknown mayhem, but I luckily cut the swipe out when doing the g-code surgery, unbeknownst to me. lol, I like it when I accidentally solve a potential problem, lol. It just went back to the right height and resumed the print as if nothing happened. No wasted ABS, no wasted money and little wasted time. Awesome!

Anyway, I /could/ create an app that does this automatically (Creates a resume-printing gcode file given the last line that was sent and the original g-code). Is anybody interested?

User avatar
Jules
Posts: 3144
Joined: Wed Jan 21, 2015 1:36 am

Re: Print stops midprint; can't reconnect. G-code surgery ti

Post by Jules » Sat Jul 18, 2015 3:50 am

Sure! Work it up! Sounds like it could be handy. :D
(I know there's a spot in S3D where you can resume at a certain spot, but never experimented with it.)

swbluto
Posts: 215
Joined: Mon May 25, 2015 7:09 pm

Re: Print stops midprint; can't reconnect. G-code surgery ti

Post by swbluto » Sat Jul 18, 2015 3:57 am

I need to know where this spot is! lol. I looked at the machine operator UI and didn't see anything that worked with the printer since the software couldn't reconnect in the first place. Once it reconnected, it couldn't resume.

Yeah, I was in the middle of a 10-hour print and there was no way I was going to let 6 hours go to waste, lol.

User avatar
Jules
Posts: 3144
Joined: Wed Jan 21, 2015 1:36 am

Re: Print stops midprint; can't reconnect. G-code surgery ti

Post by Jules » Sat Jul 18, 2015 4:19 am

It's on the Advanced tab, but it only lets you start the printing back at a certain height. Not sure how useful it would actually be.

If you pause it (as opposed to accidentally disconnecting) there is a way to resume the print, but you need to be kind of careful with where you restart it with respect to the Z-height, or the print will get out of whack. And we have messed with deliberate pauses in the prints for color change and whatnot. But nothing for an accidental disconnect.

swbluto
Posts: 215
Joined: Mon May 25, 2015 7:09 pm

Re: Print stops midprint; can't reconnect. G-code surgery ti

Post by swbluto » Sat Jul 18, 2015 2:35 pm

Well, I'm lazy since it seems easy enough to do manually but here's the general algorithm if anyone wants it.

*Insert start code*
[get last z-height]
[get last e-value]
[get last feedrate]
[g92 the z-height and e-value]
[g1 the feedrate]
*paste the rest of the g-code to execute*

User avatar
PcS
Posts: 667
Joined: Mon Mar 09, 2015 12:19 pm
Location: Michigan

Re: Print stops midprint; can't reconnect. G-code surgery ti

Post by PcS » Sat Jul 18, 2015 2:38 pm

Or print from SD card ..... :D

Post Reply