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

    Help with mesh leveling

    Scheduled Pinned Locked Moved Solved
    Tuning and tweaking
    5
    14
    540
    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.
    • Stephen6309undefined
      Stephen6309 @Col_Clucks
      last edited by

      @col_clucks This may help, here's the one I use:

      ; bed.g
      ; called to perform automatic bed compensation via G32
      M561 ; clear any bed transform
      if !move.axes[0].homed || !move.axes[1].homed || !move.axes[2].homed
       G28
      M290 R0 S0    ;  clear baby stepping
      G30 P0 X44 Y140 Z-99999 ; probe near a leadscrew, half way along Y axis
      G30 P1 X265 Y140 Z-99999 S2 ; probe near a leadscrew and calibrate 2 motors
      G29 S1 ; load heightmap.csv
      if result > 1 ; if no heightmap.csv, make one
       G29 S0
      
      
      Col_Clucksundefined 1 Reply Last reply Reply Quote 1
      • Col_Clucksundefined
        Col_Clucks @Stephen6309
        last edited by

        @stephen6309 it looks like the only difference between the code is the remove baby steps when I include my start gcode.I do like how you code is structured though so I’ll probably be changing to it.

        fcwiltundefined 1 Reply Last reply Reply Quote 0
        • fcwiltundefined
          fcwilt @Col_Clucks
          last edited by

          @col_clucks

          Just remember that before creating/loading any height map you need to set the Z=0 Datum using a single G30 at your chosen XY reference point.

          The reference point that was used when creating a height map must be used when loading that same height map.

          Frederick

          Printers: a small Utilmaker style, a small CoreXY and a E3D MS/TC setup. Various hotends. Using Duet 3 hardware running 3.4.6

          Col_Clucksundefined 1 Reply Last reply Reply Quote 0
          • Col_Clucksundefined
            Col_Clucks @fcwilt
            last edited by

            @fcwilt I do have a g30 at the center of the bed in bed.g

            In my start gcode g32 is followed by g29

            fcwiltundefined 1 Reply Last reply Reply Quote 0
            • fcwiltundefined
              fcwilt @Col_Clucks
              last edited by

              @col_clucks

              Yes but the code posted by Stephan309 does not.

              I just wanted to be sure you did not use his code as a template for yours.

              Frederick

              Printers: a small Utilmaker style, a small CoreXY and a E3D MS/TC setup. Various hotends. Using Duet 3 hardware running 3.4.6

              Stephen6309undefined 1 Reply Last reply Reply Quote 0
              • Stephen6309undefined
                Stephen6309 @fcwilt
                last edited by Stephen6309

                @fcwilt G28 homes the Z with a G30. Why does it need the G30 again?

                fcwiltundefined 1 Reply Last reply Reply Quote 0
                • fcwiltundefined
                  fcwilt @Stephen6309
                  last edited by

                  @stephen6309 said in Help with mesh leveling:

                  @fcwilt G28 homes the Z with a G30. Why does it need the G30 again?

                  It doesn't. I just wanted to be sure the OP understood and didn't follow the other posters bed.g code too closely where there was no setting of the Z=0 datum before creating/loading the height map.

                  Frederick

                  Printers: a small Utilmaker style, a small CoreXY and a E3D MS/TC setup. Various hotends. Using Duet 3 hardware running 3.4.6

                  1 Reply Last reply Reply Quote 0
                  • sanczessundefined
                    sanczess
                    last edited by

                    Hey guys, I have the same issue as Col_Clucks.
                    My printer is a coreXY with 2 Leadscrews.
                    The code that Stephen6309 posted I don't see any improvement, it just automates the leveling.

                    Is there anywhere a compensation multiplier whoose value is set too high?

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

                      Do you use the same XY point to home the Z axis with the probe in your homeall/homez and in your bed.g? Does your probe or print head have any tilt to it that varies with XY position?

                      Z-Bot CoreXY Build | Thingiverse Profile

                      sanczessundefined 1 Reply Last reply Reply Quote 0
                      • sanczessundefined
                        sanczess @Phaedrux
                        last edited by

                        @phaedrux I execute each step manually:

                        1. G29 S2
                        2. homeall ; HomeZ is in centre of bed
                        3. G32
                        4. HomeZ
                        5. G29

                        here is what character the bed always appearsScreenshot 2021-11-25 211022.jpg

                        about tilting: the printhead is running on a rail. Tilting is what carriage on rail is usual

                        IMG_20211125_212633.jpg

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

                          That saddle shape makes me think your rails are not perfectly parallel. Looks as though the left rail tilts up at the front and the right rail tilts up at the back.

                          @sanczess said in Help with mesh leveling:

                          G29 S2
                          homeall ; HomeZ is in centre of bed
                          G32
                          HomeZ
                          G29

                          Would need to see your actual files ot say more. Probably best to start your own thread.

                          Z-Bot CoreXY Build | Thingiverse Profile

                          sanczessundefined 1 Reply Last reply Reply Quote 1
                          • sanczessundefined
                            sanczess @Phaedrux
                            last edited by

                            @phaedrux oh no, the rails are parallel. wonder where you could see something like that? only the x carriage is able to tilt by a small amount which is due to decent rigidity between rail and carriage in that case.
                            The issue really appears like to much compensation or the compensation value is inverted.

                            what is the advantage of a new thread?

                            1 Reply Last reply Reply Quote 0
                            • Col_Clucksundefined
                              Col_Clucks
                              last edited by

                              Just wanted to post an update to this solved problem. I went through all my files on this machine and could not find anything that might be causing issues. As a last ditch effort I grabbed a sheet of aluminum foil and flattened it out on the bed and ran a g29 command to generate a height map. the map looked a lot different than the one I had previously generated so I decided to try and do a test print with that height map. adjusted live z and it started to print perfectly.

                              I think the issue is the pinda 2 probe and the bed probe points with the MK 42 bed not triggering consistently. I am going to print for a while with the height map I made with the foil and will probably buy the MK 52 bed and a spring steel sheet to see if that gives more reliable leveling.

                              1 Reply Last reply Reply Quote 1
                              • Phaedruxundefined Phaedrux marked this topic as a question
                              • Phaedruxundefined Phaedrux has marked this topic as solved
                              • First post
                                Last post
                              Unless otherwise noted, all forum content is licensed under CC-BY-SA