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?
Print stops midprint; can't reconnect. G-code surgery time!
Re: Print stops midprint; can't reconnect. G-code surgery ti
Sure! Work it up! Sounds like it could be handy.
(I know there's a spot in S3D where you can resume at a certain spot, but never experimented with it.)

(I know there's a spot in S3D where you can resume at a certain spot, but never experimented with it.)
Re: Print stops midprint; can't reconnect. G-code surgery ti
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.
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.
Re: Print stops midprint; can't reconnect. G-code surgery ti
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.
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.
Re: Print stops midprint; can't reconnect. G-code surgery ti
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*
*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*