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

    Bed Leveling G32 or G29

    Scheduled Pinned Locked Moved
    General Discussion
    3
    8
    1.3k
    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.
    • Karimundefined
      Karim
      last edited by Karim

      Hey guys I have two Z 2:6 I set up bed.g like this below. G32 get me this Error: Bad command: :called to perform automatic bed compensation via G32, follow by this Leadscrew adjustments made: 0.005 0.008, points used 2, deviation before 0.007 after 0.000. I am trying to figure which one to use G32 or G29 or can I use both. I comment out M561 and G29 .

      ; bed.g
      :called to perform automatic bed compensation via G32
      ;
      ; generated by RepRapFirmware Configuration Tool v2 on Mon Dec 10 2018 01:47:39 GMT+0000 (GMT)
      G28 ; home
      G30 P0 X0 Y210 Z-99999 ; probe near a leadscrew
      G30 P1 X375 Y210 Z-99999 S2 ; probe near a leadscrew and calibrate 2 motors

      ;M561 ; clear any bed transform
      ;G29 ; probe the bed and enable compensation

      Thank You

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

        @karim said in Bed Leveling G32 or G29:

        :called to perform automatic bed compensation via G32

        That line should start with a semicolon, not a colon. Try this:

        ; bed.g
        ; called to perform automatic bed compensation via G32
        ;
        ; generated by RepRapFirmware Configuration Tool v2 on Mon Dec 10 2018 01:47:39 GMT+0000 (GMT)
        M561 ; clear any bed transform
        G28 ; home
        G30 P0 X0 Y210 Z-99999 ; probe near a leadscrew
        G30 P1 X375 Y210 Z-99999 S2 ; probe near a leadscrew and calibrate 2 motors
        G29 ; probe the bed and enable compensation
        

        Or you can use G29 S1 at the end instead of G29 if you want to load a previously-stored height map.

        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
        • Karimundefined
          Karim
          last edited by Karim

          G32
          Leadscrew adjustments made: 0.054 0.033, points used 2, deviation before 0.045 after 0.000

          25 points probed, mean error 0.011, deviation 0.482
          Height map saved to file heightmap.csv

          How does this look.

          0_1547314504575_Capture.JPG

          1 Reply Last reply Reply Quote 0
          • Karimundefined
            Karim
            last edited by

            I try re level the bed and get this now, what do you guys see.

            G32
            Leadscrew adjustments made: -0.205 0.154, points used 2, deviation before 0.181 after 0.000

            25 points probed, mean error 0.049, deviation 0.151
            Height map saved to file heightmap.csv
            0_1547326015710_Capture1.JPG

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

              Looking better. What is your probe? You can try increasing the A value of M558 to try and get more consistent values from the probe points.

              You could increase the probe point density further to see how the bed shape varies more closely.

              Z-Bot CoreXY Build | Thingiverse Profile

              1 Reply Last reply Reply Quote 0
              • Karimundefined
                Karim
                last edited by

                MINI DIFFERENTIAL IR HEIGHT SENSOR
                https://www.filastruder.com/collections/electronics/products/mini-differential-ir-height-sensor

                How can I get better resolution. What do you mean by (You can try increasing the A value of M558)

                ; Z-Probe
                M574 Z0 S2
                M558 P1 H5 F120 T6000
                G31 P500 X0 Y0 Z2.493
                M557 X30:375 Y50:390 S82

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

                  @karim https://duet3d.dozuki.com/Wiki/GCode#Section_M558_Set_Z_probe_type

                  The A and S parameters control multiple probing. Probing is repeated until two consecutive probe attempts produce results that differ by no more than the S parameter; then the average of those two results is used. However, if the number of attempts specified by the A parameter is reached without getting two consecutive results within tolerance of each other, no further probe attempts are made and the average result of all the attempts is used.

                  For instance, I use M558 A10 S0.005 with my BLTouch

                  Z-Bot CoreXY Build | Thingiverse Profile

                  1 Reply Last reply Reply Quote 0
                  • Karimundefined
                    Karim
                    last edited by

                    I don't know what to change , I hope dc42 can answer this.

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