Duet3D Logo Duet3D
    • Tags
    • Documentation
    • Order
    • Register
    • Login

    Layer Count Error

    Scheduled Pinned Locked Moved
    Duet Web Control
    4
    17
    896
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • CCS86undefined
      CCS86
      last edited by

      Running RRF / DWC 3.1.1, I'm seeing a bad layer count. It is off by quite a bit.

      gcode sliced with Cura 4.6.1. 0.2mm first layer, 0.15mm layers after that. There should be 236.

      9d4d994f-74fd-474b-9bda-300294d06fc6-image.png

      Large Claw.gcode

      1 Reply Last reply Reply Quote 0
      • Lanovarundefined
        Lanovar
        last edited by

        Same with PrusaSlicer for me. Looks like its counting retractions instead of layers.

        1 Reply Last reply Reply Quote 0
        • dc42undefined
          dc42 administrators
          last edited by

          Do you have Z hop configured in the slicer retraction settings?

          Duet WiFi hardware designer and firmware engineer
          Please do not ask me for Duet support via PM or email, use the forum
          http://www.escher3d.com, https://miscsolutions.wordpress.com

          CCS86undefined 1 Reply Last reply Reply Quote 0
          • CCS86undefined
            CCS86 @dc42
            last edited by

            @dc42 said in Layer Count Error:

            Do you have Z hop configured in the slicer retraction settings?

            No Z hop in this program.

            Since it shows in the Job information that the total height is 5mm, and the total layer count of 34 nearly matches that height with 0.15mm layers, it seems to be getting tripped up there. But, looking through the gcode, I can't see anything unique about Z5

            1 Reply Last reply Reply Quote 0
            • Lanovarundefined
              Lanovar
              last edited by

              Yes i have @dc42

              1 Reply Last reply Reply Quote 0
              • CCS86undefined
                CCS86
                last edited by

                Completely different model, sliced with similar settings also registers as 5.00mm tall and 34 total layers. In reality it is 24mm tall and 159 layers.

                1 Reply Last reply Reply Quote 0
                • Phaedruxundefined
                  Phaedrux Moderator
                  last edited by

                  @CCS86 said in Layer Count Error:

                  Large Claw.gcode

                  Based on your start gcode it seems like it's picking up the G1 Z5 in your start gcode. Try changing that to be G1 Z5 ;E

                  Z-Bot CoreXY Build | Thingiverse Profile

                  CCS86undefined 1 Reply Last reply Reply Quote 0
                  • CCS86undefined
                    CCS86 @Phaedrux
                    last edited by

                    @Phaedrux said in Layer Count Error:

                    @CCS86 said in Layer Count Error:

                    Large Claw.gcode

                    Based on your start gcode it seems like it's picking up the G1 Z5 in your start gcode. Try changing that to be G1 Z5 ;E

                    Good call, I'll give that a try.

                    1 Reply Last reply Reply Quote 0
                    • CCS86undefined
                      CCS86
                      last edited by

                      That did it, thanks!

                      1 Reply Last reply Reply Quote 0
                      • Lanovarundefined
                        Lanovar
                        last edited by

                        FireShot Capture 002 - (32.1%) RatRig V-Core Pro - 192.168.178.199.png
                        My layer count is way off. Its supposed to be 75 layers.

                        Maybe someone can tell me, what Im doing wrong.

                        35x35_0.4mm_nozzle_flowrate_calibration_0.2mm_PLA_RatRig V-Core Pro_23m.gcode

                        1 Reply Last reply Reply Quote 0
                        • Lanovarundefined
                          Lanovar
                          last edited by

                          Ahh ok, now I understand.

                          Is ;E excluding that line from layer count?

                          1 Reply Last reply Reply Quote 0
                          • Lanovarundefined
                            Lanovar
                            last edited by

                            FireShot Capture 003 - (7.6%) RatRig V-Core Pro - 192.168.178.199.png
                            So now Im down to 76 of the original 75 layers.

                            35x35_0.4mm_nozzle_flowrate_calibration_0.2mm_PLA_RatRig V-Core Pro_23m.gcode

                            I think the last wrong layer is the ";before layerchange" G1 Z0.200?!
                            My before layerchange section is empty in PrusaSlicer. Any tipps on how to fix that?

                            Phaedruxundefined 2 Replies Last reply Reply Quote 0
                            • Phaedruxundefined
                              Phaedrux Moderator @Lanovar
                              last edited by Phaedrux

                              @Lanovar Add the ; E to this line in your start gcode: G0 Z5; Raise nozzle before move and add ; E to this line in your end gcode: G1 Z45.2 ; Move print head up

                              Z-Bot CoreXY Build | Thingiverse Profile

                              Lanovarundefined 1 Reply Last reply Reply Quote 0
                              • Lanovarundefined
                                Lanovar @Phaedrux
                                last edited by

                                @Phaedrux I already did that, but one false layer is still left.
                                Maybe you could take a look at my second post?!

                                1 Reply Last reply Reply Quote 0
                                • Phaedruxundefined
                                  Phaedrux Moderator @Lanovar
                                  last edited by Phaedrux

                                  @Lanovar said in Layer Count Error:

                                  I think the last wrong layer is the ";before layerchange" G1 Z0.200?!
                                  My before layerchange section is empty in PrusaSlicer. Any tipps on how to fix that?

                                  I think that G1 Z0.200 is the layer change.

                                  ;BEFORE_LAYER_CHANGE
                                  
                                  G1 Z0.200 F12000.000
                                  ;AFTER_LAYER_CHANGE
                                  
                                  

                                  That's before layer change, layer change, and after layer change. with before and after being blank.

                                  But it also looks like you have Z hop on.

                                  G1 Z0.400 F12000.000
                                  G1 X150.000 Y167.279
                                  G1 Z0.200
                                  

                                  Z hop, travel, back to layer height.

                                  And in your end gcode you have a z move, but you should make sure you're in G91 relative positioning mode before doing the Z move. That way you can move the extruder up above the print rather than to a fixed position (which may be inside the print).

                                  ;END_G_CODE
                                  
                                  M400 ; wait for current moves to finish
                                  M104 S0 ; turn off temperature
                                  M140 S0 ; turn off heatbed
                                  M107 ; turn off fan
                                  G1 F1000.0 ;E set feed rate
                                  G1 E-3 ;E - retract 3mm
                                  G1 Z45.2 ;E - move extruder up
                                  G1 X20 Y200 F3000 ;E - move extruder to X side
                                  M84 X Y E0 ; disable motors
                                  

                                  Z-Bot CoreXY Build | Thingiverse Profile

                                  1 Reply Last reply Reply Quote 0
                                  • Lanovarundefined
                                    Lanovar
                                    last edited by

                                    @Phaedrux said in Layer Count Error:

                                    That's before layer change, layer change, and after layer change. with before and after being blank.

                                    Ahh ok. I understand.

                                    But it also looks like you have Z hop on.

                                    Yes I have, but does it count as a layerchange in DWI?

                                    And in your end gcode you have a z move, but you should make sure you're in G91 relative positioning mode before doing the Z move. That way you can move the extruder up above the print rather than to a fixed position (which may be inside the print).

                                    Actually Im using conditional G-Code in PrusaSlicer for that:

                                    {if layer_z < max_print_height}G1 Z{z_offset+min(layer_z+30, max_print_height)}{endif} ;E - move extruder up
                                    

                                    Isnt that kind of like switching to G91? Or am I misunderstanding what youre saying?

                                    Phaedruxundefined 1 Reply Last reply Reply Quote 0
                                    • Phaedruxundefined
                                      Phaedrux Moderator @Lanovar
                                      last edited by

                                      @Lanovar We've hijacked another persons resolved thread. I think it would be best if you created a new thread with your issue. Include your firmware and DWC version, the example gcode file, your homing file.

                                      @Lanovar said in Layer Count Error:

                                      Isnt that kind of like switching to G91?

                                      Yes that makes sense.

                                      Z-Bot CoreXY Build | Thingiverse Profile

                                      1 Reply Last reply Reply Quote 0
                                      • First post
                                        Last post
                                      Unless otherwise noted, all forum content is licensed under CC-BY-SA