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

    Possible bug with first layer height always showing 0.2mm

    Scheduled Pinned Locked Moved
    Duet Web Control wishlist
    3
    15
    1.6k
    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.
    • deckingmanundefined
      deckingman
      last edited by

      Try adding this to the start G-code

      ; layer_height =[layer_height]

      It's something I've always done since using a very early version of Slic3R and with an equally old Duet 06 board so I have no idea if it;s still necessary but worth a shot. I don't have the problem you have but I'm on Slic3R PE 1.37.1 DWC 1.20 and Firmware 1.20 RC2 so a bit different.

      Ian
      https://somei3deas.wordpress.com/
      https://www.youtube.com/@deckingman

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

        I'll give that a shot.

        I'll see if it does the same with Cura too.

        Z-Bot CoreXY Build | Thingiverse Profile

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

          Adding the layer height comment did not help.
          Gcode generated by Cura is the same. Always shows 0.2 as the first layer height.

          Z-Bot CoreXY Build | Thingiverse Profile

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

            Do you have anything in your slicer start gcode that moves the head to Z0.2 ?

            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

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

              Why yes I do. I purge a line of filament. Makes sense as I recently added that to the start code.

              Is that expected behaviour?

              Z-Bot CoreXY Build | Thingiverse Profile

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

                The firmware determines the first layer height by looking for the first G1 Znn move where nn is a plausible layer height.

                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

                1 Reply Last reply Reply Quote 0
                • deckingmanundefined
                  deckingman
                  last edited by

                  I could be wrong but something at the back of my mind tells me that using G0 Znn instead of G1 Znn might be a cure? I believe G1 and G0 moves are treated the same as regards to movement but if the firmware looks for G1 Znn to determine layer height, would it ignore G0 Znn?

                  Ian
                  https://somei3deas.wordpress.com/
                  https://www.youtube.com/@deckingman

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

                    I can give that a try.

                    Does it matter if the first g1 move is commented out or not? I could add ; G1 Z[first_layer_height] at the start.

                    Z-Bot CoreXY Build | Thingiverse Profile

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

                      Can't you use G1 [first_layer_height] at the start, followed by G1 Z0.2 ?

                      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

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

                        @dc42:

                        Can't you use G1 [first_layer_height] at the start, followed by G1 Z0.2 ?

                        Now that you mention it, obviously I can. 😉 Thanks David.

                        Z-Bot CoreXY Build | Thingiverse Profile

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

                          @dc42 So it doesn't seem to work as hoped.

                          ; Purge some filament
                          ;
                          G90 ; Absolute positioning
                          G1 Z[first_layer_height]
                          G1 X25 ; drop nozzle down to the bed
                          G91 ; Relative positioning
                          G92 E0 ; zero the extruded length
                          G1 X25 E5 F200 ; extrude 5mm while moving right
                          G1 E-0.5
                          G92 E0 ; zero the extruded length again
                          G90 ; absolute
                          G1 Z0.05
                          G91 ; relative
                          G1 Y10 F8000 ; wipe nozzle
                          G90 ; absolute
                          G1 Z[first_layer_height]
                          M400

                          The only Z height it seems to use for display in the DWC is the G1 Z0.05 now. It ignores the ones that use the slic3r variable place holders [first_layer_height].

                          Not a big deal.

                          Z-Bot CoreXY Build | Thingiverse Profile

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

                            What does the start of the generated gcode file look like?

                            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

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

                              @dc42 it looks the same as what I posted above except [first_layer_height] has been replaced by the numerical value for the layer height. In this case 0.26

                              Full gcode here: https://www.dropbox.com/s/mleu5lljacvyq0k/Wooden_bowl.gcode.zip?dl=1

                              Z-Bot CoreXY Build | Thingiverse Profile

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

                                Just an update.

                                I added a feedrate to the G1 command and now they show up in the DWC properly.

                                G1 Z[first_layer_height] F600

                                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