[BUG] Layer count exceeding number of layers
-
Hello,
I was printing a few parts today and noticed the layer count was incorrect (see picture below). Some of the parts use supports, some don't which is where I am thinking the problem is coming from.
Parts were sliced with PrusaSlicer 2.6.0-alpha6.
Picture of layer count on Status page:
-
@Merlin246 Generally, supports are printed at a different height to the main layers. Afaik DWC uses a G1 Z move to detect when the layer changes. But the number of layers is calculated from the object height divided by the layer height and therefore ignores the supports layers when the total number of layers for an object is calculated. I'd guess that the only solution would be for the slicer to calculate the number of layers including both "main print layers" and support layers, then for DWC to get that information from the slicer. Maybe it already does that? If that is the case, then the slicer needs to change. But it begs the question of what the definition of a layer should be? Should it include intermediate support layers or not?
-
Are you maybe using variable layer height in PrusaSlicer? As Deckingman said, the number of layers is model height devided by layer height but that gets screwed up if the layer height varies.
-
@Merlin246 You probably haven't set up PrusaSlicer correctly. DWC (or precisely) RRF/DSF detect the current and maximum layer number from G-code comments and they fall back to the Z/layer height if that info isn't present. You should have this in your after layer change G-code
;LAYER [layer_num]
and this at the end of your custom end G-code;NUM_LAYERS [layer_num]
. Then you should see the correct layer numbers. As @deckingman said, support layers are counted as separate layers - at least in PrusaSlicer.