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

    Mesh bed compensation

    Scheduled Pinned Locked Moved
    Tuning and tweaking
    4
    8
    278
    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.
    • Willo47undefined
      Willo47
      last edited by

      Hi , I have built a coreXY printer running a duet3d board with reprapfirmware.
      I am having a problem with getting mesh bed compensation working.
      I disable meshbed compensation with M561 and obtain Z probe height over various points on the bed then I activate meshbed compensation and the Z probe offsets remain identical to the disabled compensation. Has anyone been successful at getting meshbed compensaiton working. If so would you be able to share your setup code.
      Thanks

      jay_s_ukundefined Phaedruxundefined 2 Replies Last reply Reply Quote 0
      • Willo47undefined
        Willo47 @bernardomattiucci
        last edited by

        @bernardomattiucci
        I too have problem with meshbed compensation not working despite trying every conceivable code.
        My firmware did not come with a mesh.g file. Can anyone tell me what it consisted of

        droftartsundefined 2 Replies Last reply Reply Quote 0
        • jay_s_ukundefined
          jay_s_uk @Willo47
          last edited by

          @Willo47 post an output of M122 when you think you have activated mesh compensation

          Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

          1 Reply Last reply Reply Quote 0
          • droftartsundefined
            droftarts administrators @Willo47
            last edited by

            @Willo47 See https://docs.duet3d.com/en/User_manual/Reference/Gcodes#g29-mesh-bed-probe

            Mesh.g

            • In RRF 3.2 and later, if G29 is commanded with no S parameter, then file sys/mesh.g is run if it exists.
            • In RRF 3.3 and later any parameters present are passed to mesh.g.
            • If sys/mesh.g is not present then the command behaves like G29 S0.

            mesh.g is a specific macro called when mesh bed compensation (G29) is called for. It basically replaces bed.g, which was often set up to do the mesh bed compensation, but can now be used for other forms of bed compensation. You don't particularly need mesh.g as the mesh bed compensation can run on it's own, but it can be useful if you want to run other commands before and after. Here's mine:

            ; mesh.g
            ; called to perform bed mesh compensation via G29
            ;
            ; generated by RepRapFirmware Configuration Tool v3.2.3 on Thu Mar 18 2021 13:50:36 GMT+0000 (Greenwich Mean Time)
            M561   ; clear any bed transform
            G28 Z  ; home Z
            G29 S0 ; probe the bed and enable compensation
            G28 Z  ; home Z
            

            Ian

            Bed-slinger - Mini5+ WiFi/1LC | RRP Fisher v1 - D2 WiFi | Polargraph - D2 WiFi | TronXY X5S - 6HC/Roto | CNC router - 6HC | Tractus3D T1250 - D2 Eth

            1 Reply Last reply Reply Quote 0
            • droftartsundefined
              droftarts administrators @Willo47
              last edited by

              @Willo47 I've moved your posts from the other thread to this one, rather than revive a 2-year-old thread.

              Ian

              Bed-slinger - Mini5+ WiFi/1LC | RRP Fisher v1 - D2 WiFi | Polargraph - D2 WiFi | TronXY X5S - 6HC/Roto | CNC router - 6HC | Tractus3D T1250 - D2 Eth

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

                @Willo47 said in Mesh bed compensation:

                and the Z probe offsets remain identical to the disabled compensation

                what exactly are you looking at here to determine it's not working?

                The best way to see if it is having an effect is to print a first layer test print that covers the majority of the bed, either completely, or sparsely, and print it twice, once with the compensation active, and again without.

                Z-Bot CoreXY Build | Thingiverse Profile

                Willo47undefined 1 Reply Last reply Reply Quote 0
                • Willo47undefined
                  Willo47 @Phaedrux
                  last edited by

                  @Phaedrux Hi Thanks for all of the replies. My printer has a print area of 500X500 mm. My prints are OK at the center and test prints are OK. When I print at the extremities is where I am having problems with first layer heights. My bed is well within +/- 0.5 mm level.
                  When I probe using G30 S-1 at the center I get a z return height of 2.4 mm which is what is entered into the config.g code. When I probe at the extremities is where I get different Z probe heights. The probe heights are identical with mesh bed leveling on or off.

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

                    @Willo47 said in Mesh bed compensation:

                    When I probe at the extremities is where I get different Z probe heights. The probe heights are identical with mesh bed leveling on or off.

                    This isn't something that mesh compensation can solve. It sounds like you have some gantry sag. The compensation assumes that the XY gantry is flat over the entire area. You'd have to manually do G30 S-1 in a grid across the bed to map out what the variation is.

                    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