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

Improving mesh bed compensation with M558 HX

Scheduled Pinned Locked Moved
General Discussion
7
40
1.8k
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.
  • undefined
    illy
    last edited by illy 9 Jul 2020, 14:03 7 Sept 2020, 13:57

    Hi everyone!

    I think my mesh bed compensation is not working correctly (maybe not working at all). I've tried to vary the H parameter in the M558 command but it didn't get better, always got the same result. It's a cartesian printer with RRF 2.02.

    I've tried it with H30 and then G29 S0. I've also sent a M122 command. "Bed compensation in use: mesh".

    This is the code in config.g:

    M558 P5 X0 Y0 Z1 I0 H5 A3 F120 T6000 S0.01 ; Set Z probe type
    G31 P600 X32.7 Y35 Z0.5 ; Set Z probe trigger
    M557 X67:270 Y75:265 S101.5:90 ; Define mesh grid

    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

    I would like to know if there is another way to improve the mesh bed compensation or if I've done something wrong with the H parameter. Look forward to your help, thank you!

    undefined undefined undefined 6 Replies Last reply 7 Sept 2020, 14:06 Reply Quote 0
    • undefined
      peter247 @illy
      last edited by 7 Sept 2020, 14:06

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

      M558 P5 X0 Y0 Z1 I0 H5 A3 F120 T6000 S0.01 ; Set Z probe type

      Doesn't the H mean , after it as sensed the bed ( eg on the bltouch it's pushed the pin up ) , the height the probe/nozzle will raise .

      I've set my H to 2mm , with a H of 30mm it will raise by 30mm after each hit.

      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
      • undefined
        Veti @illy
        last edited by Veti 9 Jul 2020, 14:07 7 Sept 2020, 14:06

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

        M557 X67:270 Y75:265 S101.5:90 ; Define mesh grid

        depending on the quality of your bed that might not be enough. Try S10

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

        RRF 2.02.

        Please update to at least 2.0.5.1

        also post a picture of the final mesh bed

        undefined 1 Reply Last reply 7 Sept 2020, 14:11 Reply Quote 0
        • undefined
          peter247 @Veti
          last edited by 7 Sept 2020, 14:11

          @Veti

          You would know if S was too low , because you would get a error message saying so.

          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
          • undefined
            peter247 @illy
            last edited by 7 Sept 2020, 14:13

            @sykb

            Are you using a bltouch to home / mesh level / bed compensation ?

            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
            • undefined
              Veti
              last edited by 7 Sept 2020, 14:14

              then try S15

              1 Reply Last reply Reply Quote 0
              • undefined
                illy
                last edited by 7 Sept 2020, 14:27

                @Veti

                Unbenannt.JPG

                @peter247 I'm using probe to home Z

                undefined undefined 2 Replies Last reply 7 Sept 2020, 14:34 Reply Quote 0
                • undefined
                  peter247 @illy
                  last edited by 7 Sept 2020, 14:34

                  @sykb

                  Is your off set correct ?

                  G31 P600 X32.7 Y35 Z0.5 ; Set Z probe trigger

                  So this say your probe is 32.7mm to the right of the nozzle X axis and your probe is 35mm to the back of the nozzle Y axis , Correct ?

                  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+

                  undefined 1 Reply Last reply 9 Sept 2020, 08:38 Reply Quote 0
                  • undefined
                    Veti
                    last edited by 7 Sept 2020, 14:44

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

                    then try S15

                    you have not changed this. there are only 9 points in your mesh.

                    1 Reply Last reply Reply Quote 0
                    • undefined
                      Phaedrux Moderator @illy
                      last edited by 7 Sept 2020, 17:35

                      @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
                      • undefined
                        deonholt @illy
                        last edited by 7 Sept 2020, 18:06

                        @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.

                        undefined 1 Reply Last reply 7 Sept 2020, 18:11 Reply Quote 0
                        • undefined
                          Phaedrux Moderator @deonholt
                          last edited by 7 Sept 2020, 18:11

                          @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

                          undefined 2 Replies Last reply 7 Sept 2020, 18:13 Reply Quote 1
                          • undefined
                            deonholt @Phaedrux
                            last edited by 7 Sept 2020, 18:13

                            @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
                            • undefined
                              deonholt @Phaedrux
                              last edited by 7 Sept 2020, 18:26

                              @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.

                              undefined undefined 2 Replies Last reply 7 Sept 2020, 18:57 Reply Quote 0
                              • undefined
                                fcwilt @deonholt
                                last edited by 7 Sept 2020, 18:57

                                @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 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
                                • undefined
                                  Phaedrux Moderator @deonholt
                                  last edited by Phaedrux 9 Jul 2020, 19:00 7 Sept 2020, 19:00

                                  @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

                                  undefined 1 Reply Last reply 7 Sept 2020, 21:47 Reply Quote 0
                                  • undefined
                                    peter247 @Phaedrux
                                    last edited by 7 Sept 2020, 21:47

                                    @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
                                    • undefined
                                      illy
                                      last edited by 8 Sept 2020, 06:29

                                      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.

                                      undefined 1 Reply Last reply 8 Sept 2020, 08:54 Reply Quote 0
                                      • undefined
                                        illy
                                        last edited by 8 Sept 2020, 08:51

                                        @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

                                        undefined 1 Reply Last reply 8 Sept 2020, 09:35 Reply Quote 0
                                        • undefined
                                          peter247 @illy
                                          last edited by peter247 9 Aug 2020, 08:56 8 Sept 2020, 08:54

                                          @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
                                          2 out of 40
                                          • First post
                                            2/40
                                            Last post
                                          Unless otherwise noted, all forum content is licensed under CC-BY-SA