hudbrog / gCodeViewer

a visual web based gcode analyzer
Other
419 stars 148 forks source link

Feature-request: Exclude Layers #91

Open mr-who2012 opened 2 years ago

mr-who2012 commented 2 years ago

This wonderful plugin has the ability to exclude certain regions of a print, with drawing circles or rectangles into the gcode-viewport. It was extremely useful if layers could be skipped in a similar way. This would allow RESUMING of failed prints!

How to do this manually, is shown here and here.

Unfortunately, there is no plugin out there to resume automatically. There is however a cmdline-tool to cut a large gcode-file into smaller pieces, for resuming and filament-change in a semi-automatic way: GetToDahChopper

With all methods the following things need special attention:

1) The gcode-head needs to be kept untouched (everything up to the line "M117 Printing...") 2) The number of already extracted filament must be used at the beginning of the shortened file (from the skipped-to position: the first previous G1 command that has an extrusion (“E”)). Otherwise the printer will extrude a lot of material after a layer-skip. The number is an always-increasing absolute number. 3) Auto-calibration (G92) needs to be skipped as well 4) Cura starts layer-counting at 0 (Brim and Skirt have negative numbers). So the target-layer of a skip needs to be reduced by 1.

Just look at the first two links. Everything is explained there.

Of course some method to log the number of already printed layers would be desirable too. This way someone knows which layer to resume from, after a print got interrupted.

mr-who2012 commented 2 years ago

No reactions, really? This feature was super-awesome. Resuming failed prints is not possible at the moment! This could be the first octoprint-plugin offering this functionality!