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

    Settings the bed G28 G29 and G32

    Scheduled Pinned Locked Moved
    General Discussion
    5
    19
    2.1k
    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.
    • Thaliosundefined
      Thalios @A Former User
      last edited by

      @sgk Make sure you do a G28 AFTER you play with the bed leveling, but before you do G29/G32. ALWAYS do a G28 first, as it denotes the start position for the sensor. That's why your heatmap seems all red/orange.

      Railcore II 300ZL with lots of upgrades (Duet 3 6HC)
      Heavily modified Ender 3 Pro (Duet 3 6HC)
      Heavily modified Tronxy X5SA-500 Pro with Chimera+ and dual bondtech (Duet 3 6HC)
      CR-10S Pro V2 (Duet 3 Mini 5+)
      and a bunch of SLA printers..

      A Former User? 2 Replies Last reply Reply Quote 0
      • A Former User?
        A Former User @Thalios
        last edited by

        @thalios
        actually I always did g29 or g32 after adjusting the screws of the bed

        1 Reply Last reply Reply Quote 0
        • A Former User?
          A Former User @Thalios
          last edited by A Former User

          @thalios g28 and after rolling g32 I roll Checking the trigger heigh?

          1 Reply Last reply Reply Quote 0
          • A Former User?
            A Former User
            last edited by A Former User

            This post is deleted!
            A Former User? 1 Reply Last reply Reply Quote 2
            • A Former User?
              A Former User @A Former User
              last edited by A Former User

              @herve_smith my config bed,

              but when I run g32 it makes me point left right point and after all the bed

              M561 ; clear any bed transform
              G91 ; relative positioning
              G1 H2 Z5 F6000 ; lift Z relative to current position
              G90 ; absolute positioning
              G28 ; home all
              G30 P0 X10 Y175 Z-99999 ; probe near a leadscrew, half way along Y axis
              G30 P1 X330 Y175 Z-99999 S2 ; probe near a leadscrew and calibrate 2 motors
              G29 S0 ; probe the bed and enable compensation
              M291 P"Leveling finished !" R"Probing.." S1 T2

              A Former User? 1 Reply Last reply Reply Quote 0
              • A Former User?
                A Former User @A Former User
                last edited by A Former User

                please excuse me but i am lost when i run g28 after i adjust the screw of the bed and i run g32 the bed is never straight compared to the ladder as in the photoCapture d’écran 2022-09-04 184537.jpg

                I read but I'm really lost

                I would like to post a video but I can't

                A Former User? 1 Reply Last reply Reply Quote 0
                • A Former User?
                  A Former User @A Former User
                  last edited by

                  here I managed to put the bed at levels but when I launch the print the nozzle remains at 2mm from the bed I don't understand?Capture d’écran 2022-09-04 184537.jpg

                  jumpedwithbothfeetundefined 1 Reply Last reply Reply Quote 0
                  • jumpedwithbothfeetundefined
                    jumpedwithbothfeet @A Former User
                    last edited by

                    @sgk you should heat your bed before carrying out Z probes, have you set your trigger height in G31?

                    https://docs.duet3d.com/en/User_manual/Connecting_hardware/Z_probe_testing

                    6HC Voron Trident based, 6XD CNC, Mini 5 polar printer

                    A Former User? 1 Reply Last reply Reply Quote 0
                    • A Former User?
                      A Former User @jumpedwithbothfeet
                      last edited by

                      @jumpedwithbothfeet
                      after adjusting the level of the bed with g32 I did g31 s-1 but I am 2mm from the bed as I said before

                      1 Reply Last reply Reply Quote 0
                      • mikeabuilderundefined
                        mikeabuilder
                        last edited by

                        Maybe restating some stuff, but here's a description of the steps, with less of the Gcode details but maybe more of the "why am I doing this?"

                        1. After power on... HOME all axes. This is a G28. You should know that when you (or your config.g, or any other macro) sends G28, the RRF (RepRap Firmware) will look in your sys directory homex.g, homey.y, homez.g, or homeall.g. It then runs the appropriate macro. it's good for you to look into these files to see what they are doing. The reason you need to home all is so that the machine learns where the print head is and can send it to a desired location.
                          1.A- When your printer homes X the code in that homex.g will tell the print head to move in one direction until the endstop switch is triggered (using a G1 H1... gcode). The machine will remember the location where this happens as X="value". The "value" is based on another gcode (M208) that should already have run in either the config.g or the homex.g. That M208 defines the limits the machine will move in the X direction.
                          1.B - The Y axis is the same, but using homey.g
                          1.C - The Z axis is different (in most printers) because it does not use a limit switch, but a probe of some kind, so you will not find the G1 H1 command. What your homez.g needs to do is move the print head to an X,Y position that puts the probe over the spot you want to probe to find a Z location the machine can remember. You will usually see a G1 X.. Y.. command, followed by a G30. The G1 command moves the printhead, and G30 says to probe the bed and set the Z to the "probe trigger height". The probe Trigger height is set with the Z parameter of a G31 command in the config.g that also tells the RRF an X and Y offset for the probe location. So that's how the machine learns it's Z coordinates.

                        2. Now that the machine knows how to put the print head in a specific X, Y and Z location, you can "level" the bed. "Level" is not a great term for what's about to happen. "Averaging out the Z lead-screws" is maybe a better description, but too long. This is done by running the macro code in a file called bed.g, and is normally called by sending a G32 command. The code in bed.g will tell your printer to use the z probe to measure the Z-location of the bed at various X.Y locations, then it will move the 2 (or 3) connected Z motors to get a "best fit" for all the points measured.

                        3. Since step 2 just moved the motors and messed with the bed, it's important to run another homez.g (G28 Z) so the machine will get a Z based on the new location of the bed.

                        4. At this point, the machine has done the "best it can" to make the z location of every point on the bed equal. Ideally, the distance from the nozzle to the bed is identical everywhere. But we don't live in an ideal world. Things that mess with this - probably not a complete list - A. The bed is not flat because it's bent or has bumps, B. 4 corner leveling has put a bow into the bed by pushing two opposite corners up and the other two down, C. in a two Z-motor config, the bed is tilted on the imaginary line that connects the two lead screws, D. is there are two Y (or X) rails, they are not on the same plane (one up at the rear, one down at the rear).
                          This is where bed mesh compensation (G29) comes in. It uses the probe to measure the bed at lots of locations and remembers it. Then, during printing, the Z position will be adjusted based on the data captured during the G29.

                        5. Looking at the bed's height map, you can try to determine (guess) why it's not perfect and make adjustments to your machine to reduce the required compensation. But remember that when you adjust something, you should go back to step one on this list.

                        Hope this was a little helpful.

                        A Former User? 1 Reply Last reply Reply Quote 2
                        • A Former User?
                          A Former User @mikeabuilder
                          last edited by

                          @mikeabuilder Thank you very much for your help, I will take a closer look.😀👍

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