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

    Improving mesh bed compensation with M558 HX

    Scheduled Pinned Locked Moved
    General Discussion
    7
    40
    1.9k
    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.
    • Phaedruxundefined
      Phaedrux Moderator @illy
      last edited by

      @sykb said in Improving mesh bed compensation with M558 HX:

      M564 S0 H0
      G1 X33.5 Y27 Z15 F6000 ; go to first bed probe point and home Z
      M564 S0 H1

      You shouldn't have to be using M564 at all. I would suggest removing those. If something isn't working without them you've got other problems to solve.

      What type of probe is this?

      Increasing your grid density will give you a better idea of what the bed surface is actually like. When it's so sparse like you have there could be large variations in between the points that are not captured in the mesh and can't be compensated for.

      You can try adding M558 A parameter to increase the repeatability of the probe.

      Z-Bot CoreXY Build | Thingiverse Profile

      1 Reply Last reply Reply Quote 0
      • deonholtundefined
        deonholt @illy
        last edited by

        @sykb what settings do you use to tell the probing to only probe 9 points? I would like to have that as well. Mine is currently probing about 42 points and I have a glass bed.

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

          @deonholt said in Improving mesh bed compensation with M558 HX:

          @sykb what settings do you use to tell the probing to only probe 9 points? I would like to have that as well. Mine is currently probing about 42 points and I have a glass bed.

          In M557 you use either S or P parameters to tell it the spacing of the points, or the number of points. So if you want 9 points, use P3:3 which will probe a 3x3 grid.

          Z-Bot CoreXY Build | Thingiverse Profile

          deonholtundefined 2 Replies Last reply Reply Quote 1
          • deonholtundefined
            deonholt @Phaedrux
            last edited by

            @Phaedrux said in Improving mesh bed compensation with M558 HX:

            @deonholt said in Improving mesh bed compensation with M558 HX:

            @sykb what settings do you use to tell the probing to only probe 9 points? I would like to have that as well. Mine is currently probing about 42 points and I have a glass bed.

            In M557 you use either S or P parameters to tell it the spacing of the points, or the number of points. So if you want 9 points, use P3:3 which will probe a 3x3 grid.

            Great! Thank you so much.

            1 Reply Last reply Reply Quote 0
            • deonholtundefined
              deonholt @Phaedrux
              last edited by

              @Phaedrux said in Improving mesh bed compensation with M558 HX:

              In M557 you use either S or P parameters to tell it the spacing of the points, or the number of points. So if you want 9 points, use P3:3 which will probe a 3x3 grid.

              I tried this but it gave some error:
              M557 P3:3 ; define mesh grid 3x3
              I think I' missing something to tell it to save it. (I'm learning.)

              Thanks.

              fcwiltundefined Phaedruxundefined 2 Replies Last reply Reply Quote 0
              • fcwiltundefined
                fcwilt @deonholt
                last edited by

                @deonholt said in Improving mesh bed compensation with M558 HX:

                I tried this but it gave some error:
                M557 P3:3 ; define mesh grid 3x3
                I think I' missing something to tell it to save it. (I'm learning.)

                Thanks.

                You still have to include the X and Y min/max values.

                Frederick

                Printers: a E3D MS/TC setup and a RatRig Hybrid. Using Duet 3 hardware running 3.4.6

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

                  @deonholt When in doubt check the gcode wiki.

                  https://duet3d.dozuki.com/Wiki/Gcode#Section_M557_Set_Z_probe_point_or_define_probing_grid

                  https://duet3d.dozuki.com/Wiki/Using_mesh_bed_compensation#Section_Define_the_mesh_size_and_spacing

                  Z-Bot CoreXY Build | Thingiverse Profile

                  peter247undefined 1 Reply Last reply Reply Quote 0
                  • peter247undefined
                    peter247 @Phaedrux
                    last edited by

                    @Phaedrux

                    Not seen sykb on , But I can see lots of faults .
                    Can't tell what printer he has , but to me the off sets or wrong , the homing files are wrong , and he is not probing the centre of the bed.

                    Ender 5 plus linear rail and hemera powered by duet 2 wifi , CR10s pro v1 with bltouch mostly stock , BLV mgn Cube slowly being built powered by duet 3 mini 5+

                    1 Reply Last reply Reply Quote 1
                    • illyundefined
                      illy
                      last edited by

                      Thank you everyone for your response and sorry for my slow response. I'll try all your suggests.

                      @peter247 yes, the off set is correct. I can show you a picture.

                      InkedWhatsApp Image 2020-09-08 at 08.11.17_LI.jpg

                      @Veti yes, I have not changed it. I just wanted to show you how it looks with 9 points. I'll update the firmware first to 2.05.1 and try with S10 or S15, as you suggested.

                      @Phaedrux I've tried adding M558 A parameter in 2.02 and didn't get a better result. I'll try it again but in 2.05.1.

                      I'm using an inductive sensor as probe. You can also see it on the picture above.

                      @deonholt yes, you also have to define the X and Y min and max values, as @fcwilt said.

                      peter247undefined 1 Reply Last reply Reply Quote 0
                      • illyundefined
                        illy
                        last edited by

                        @Veti I've tried S30 (49 points) in RRF 2.05.1 and this is the result:

                        s30a3.JPG

                        And then I did a test print but got the same result as before.

                        @Phaedrux I've changed the code to S30 in the M557 command and to H10 A6 S0.01 in the M558 command, but there is still no improvement. I've also tried removing the M564 commands in the homing files, as you suggested, but after that I could not home Z at all and got an error report saying: Error: G0/G1: insufficient axes homed.

                        And this the height map with the changed parameter:

                        s30,h10a6s0.01.JPG

                        peter247undefined 1 Reply Last reply Reply Quote 0
                        • peter247undefined
                          peter247 @illy
                          last edited by peter247

                          @sykb

                          Your homing could be simpler :-
                          This is mine !!!

                          ; homeall.g
                          ; called to home all axes
                          ;
                          G91               ; relative positioning
                          G1 H2 Z5 F6000    ; lift Z relative to current position
                          G1 H1 X 355 F3000 ; move quickly to X axis endstop and stop there (first pass)
                          G1 H1 Y 355 F3000 ; move quickly to Y axis endstop and stop there (first pass)
                          G90               ; absolute positioning
                          G1 X220 Y175 F4000 ; Move probe to middle of bed 350 x 350 
                          G30
                          

                          I only do a single pass homing on X and Y , don't care if it is a fraction out.

                          What is your printing area ? , and can the probe go to the edges of the printing area without hitting the sides or hitting the limits ?

                          Ender 5 plus linear rail and hemera powered by duet 2 wifi , CR10s pro v1 with bltouch mostly stock , BLV mgn Cube slowly being built powered by duet 3 mini 5+

                          1 Reply Last reply Reply Quote 0
                          • illyundefined
                            illy
                            last edited by

                            @peter247 250x210x325 mm. Yes, the probe can go outwards without hitting anything.

                            1 Reply Last reply Reply Quote 0
                            • peter247undefined
                              peter247 @illy
                              last edited by peter247

                              @sykb

                              I can't see anything wrong with your height map .

                              First you do need to level your bed , and after looking at your height map do a little adjusting to get it right.

                              Mesh levelling looks at your bed and adjusts while printing , it does not level your bed !!!!

                              This is my map .
                              level6.jpg

                              Ender 5 plus linear rail and hemera powered by duet 2 wifi , CR10s pro v1 with bltouch mostly stock , BLV mgn Cube slowly being built powered by duet 3 mini 5+

                              1 Reply Last reply Reply Quote 0
                              • illyundefined
                                illy
                                last edited by illy

                                @peter247 the problem is the mesh bed compensation. It seems to not be working correctly or maybe not working at all. I've tried varying the H parameter in the M558 command but I always got the same test print result. No improvement. "A large dive height could tolerate a very uneven bed or poor calibration". But it doesn't work for me.

                                peter247undefined 1 Reply Last reply Reply Quote 0
                                • peter247undefined
                                  peter247 @illy
                                  last edited by peter247

                                  @sykb

                                  M558 command but I always got the same test print result. No improvement.

                                  What do you mean by a print a real physical print with filament or running the mesh bed compensation routine ?

                                  What is wrong with your test print can you show a picture so we can see what your problem is ? ( the first layer )

                                  I've tried varying the H parameter in the M558

                                  The wind direction outside or your house number will do the same affect as the H in the M558 , the H is just the height it will go to after each probe.

                                  Mesh levelling looks at your bed and adjusts while printing , it does not level your bed !!!!

                                  Ender 5 plus linear rail and hemera powered by duet 2 wifi , CR10s pro v1 with bltouch mostly stock , BLV mgn Cube slowly being built powered by duet 3 mini 5+

                                  1 Reply Last reply Reply Quote 0
                                  • Vetiundefined
                                    Veti
                                    last edited by

                                    @peter247 said in Improving mesh bed compensation with M558 HX:

                                    Mesh levelling looks at your bed and adjusts while printing , it does not level your bed !!!!

                                    given a head with enough force it might be possible to physically level the bed 🙂

                                    peter247undefined 1 Reply Last reply Reply Quote 0
                                    • peter247undefined
                                      peter247 @Veti
                                      last edited by peter247

                                      @Veti

                                      Not funny , I've done that once !!!!
                                      o.k more than once . 😀

                                      Ender 5 plus linear rail and hemera powered by duet 2 wifi , CR10s pro v1 with bltouch mostly stock , BLV mgn Cube slowly being built powered by duet 3 mini 5+

                                      1 Reply Last reply Reply Quote 0
                                      • illyundefined
                                        illy
                                        last edited by illy

                                        @peter247 yes a real physical print with filament. This is the test print of the first layer. Thank you for your support so far, I really appreciate it 🙂

                                        You can see the print quality difference in some position in the pictures below. I did not see any mesh bed compensation applied there that compensated the uneven bed. (please tell me, if I'm wrong)

                                        As you can see in the first picture (right side), there is a huge quality difference between above and below.

                                        Right side:

                                        WhatsApp Image 2020-09-08 at 16.06.44 (1).jpeg

                                        left side:
                                        WhatsApp Image 2020-09-08 at 16.06.44.jpeg

                                        1 Reply Last reply Reply Quote 0
                                        • peter247undefined
                                          peter247
                                          last edited by peter247

                                          I think it is working due to the stagger in the skirt !!!!
                                          The bigger the stagger the bigger the fault , so it is working but getting it wrong.

                                          one point are you running the mesh bed compensation at full working temp eg a bed temperature of 60c

                                          Ender 5 plus linear rail and hemera powered by duet 2 wifi , CR10s pro v1 with bltouch mostly stock , BLV mgn Cube slowly being built powered by duet 3 mini 5+

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

                                            @sykb said in Improving mesh bed compensation with M558 HX:

                                            homeall.g:
                                            G91 ; relative positioning
                                            G1 Z5 F6000 S2 ; lift Z relative to current position
                                            G1 S1 X-382 Y-457 F1800 ; move quickly to X and Y axis endstops and stop there (first pass)
                                            G1 X5 Y5 F6000 ; go back a few mm
                                            G1 S1 X-382 Y-457 F360 ; move slowly to X and Y axis endstops once more (second pass)
                                            G90 ; absolute positioning
                                            M564 S0 H0
                                            G1 X33.5 Y27 Z15 F6000 ; go to first bed probe point and home Z
                                            M564 S0 H1
                                            G30 ; home Z by probing the bed
                                            homez.g:
                                            G91 ; relative positioning
                                            G1 Z5 F6000 S2 ; lift Z relative to current position
                                            G90 ; absolute positioning
                                            M564 S0 H0
                                            G1 X33.5 Y27 Z15 F6000 ; go to first probe point
                                            M564 S0 H1
                                            G30 ; home Z by probing the bed

                                            @sykb said in Improving mesh bed compensation with M558 HX:

                                            I've also tried removing the M564 commands in the homing files, as you suggested, but after that I could not home Z at all and got an error report saying: Error: G0/G1: insufficient axes

                                            At what point are you getting the insufficient axes homed error? It's basically telling you that you are trying to move an axis before it is homed. The proper way to do this, is to either home the axis first, or if it's for something like a Z axis lift to clear the nozzle and the bed you can use an S2/H2 switch on the G1 command to allow an unhommed move. Much safer than just a blanket allow unhomed moves with M564.

                                            If the error is happening before that G1 move to place the probe in the center of the bed something is wrong because in homeall the x and Y axis should already be homed. If it's from using homez by itself, then yes, it will give an error if the X and Y aren't already homed. You can't guarantee the position so it's not going to let you move to an absolute position if it doesn't know where it is in absolute coordinate space. Forcing to allow it to move is just asking for a crash.

                                            Also, your homing files are still using S1. Now that you've updated the firmware you should switch to using H1/H2 (S is being used for laser power when in laser mode.)

                                            Can you post your full config.g?

                                            Z-Bot CoreXY Build | Thingiverse Profile

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