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

    Mesh levelling on 3.1.1

    Scheduled Pinned Locked Moved
    Tuning and tweaking
    4
    37
    1.5k
    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.
    • laelundefined
      lael @fcwilt
      last edited by

      @fcwilt so far I've just been running through the mesh levelling tutorial / example and haven't made a macro for it. To remap I've gone through the entire procedure manually.

      In terms of the nozzle tip, you mean relative to the bed?

      fcwiltundefined 1 Reply Last reply Reply Quote 0
      • fcwiltundefined
        fcwilt @lael
        last edited by

        @lael said in Mesh levelling on 3.1.1:

        I've gone through the entire procedure manually.

        Did you do a G30 prior to the G29 that actually started the probing of the bed?

        In terms of the nozzle tip, you mean relative to the bed?

        Yes.

        Frederick

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

        laelundefined 1 Reply Last reply Reply Quote 0
        • laelundefined
          lael @fcwilt
          last edited by

          @fcwilt said in Mesh levelling on 3.1.1:

          @lael said in Mesh levelling on 3.1.1:

          I've gone through the entire procedure manually.

          Did you do a G30 prior to the G29 that actually started the probing of the bed?

          yes

          In terms of the nozzle tip, you mean relative to the bed?

          The bed is quite warped, but at the center where I run the G30's for printing etc, it is just the right height above the bed to grip a piece of paper lightly. So I guess ~0.1 or a little less or so.

          fcwiltundefined 1 Reply Last reply Reply Quote 0
          • fcwiltundefined
            fcwilt @lael
            last edited by

            @lael

            If you are going to use the G92 Znnn command you should determine as best you can what the actual nozzle position is and use that value.

            Did you correct your G31 command and include the P X Y and Z parameters?

            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
            • laelundefined
              lael
              last edited by

              So what is the relationship between all of the Z points?

              Here is my understanding so far:

              G92 Z0 sets printing 0 - so the firmware is expecting 0 to be where the nozzle should be when putting down the first layer.

              G31 sets the location where the probe will be triggered - so in my case it is a piezo sensor which is triggered when the nozzle impacts the bed. So a -0.7mm makes sense as that is when the nozzle will actually contact the bed?

              Home Z will move the head/bed (bed in my case) to the end stop, which will reference that location as zero.

              Then mesh compensation will apply the additional compensation it has found above or below the Z point. The G30 datum point - sets the location at which the mesh map will be applied from? or does it overrride the G31 in config.g?

              Phaedruxundefined fcwiltundefined 2 Replies Last reply Reply Quote 0
              • Phaedruxundefined
                Phaedrux Moderator @lael
                last edited by

                @lael said in Mesh levelling on 3.1.1:

                The G30 datum point - sets the location at which the mesh map will be applied from? or does it overrride the G31 in config.g?

                G30 uses the trigger height from G31

                Usually when you have a probe, you don't use a Z min endstop at all. You use the probe for homing Z and creating the mesh. That way the Z0 reference is always the same based on the probe.

                Z-Bot CoreXY Build | Thingiverse Profile

                laelundefined 1 Reply Last reply Reply Quote 0
                • fcwiltundefined
                  fcwilt @lael
                  last edited by fcwilt

                  @lael said in Mesh levelling on 3.1.1:

                  G92 Z0 sets printing 0 - so the firmware is expecting 0 to be where the nozzle should be when putting down the first layer.

                  It's essential that the firmware knows the actual position of the nozzle on the X, Y and Z axes. For the Z axis that position can be set using an end stop or a Z probe. While the end stop references the frame, the Z probe references the bed which is better because any changes due to the heating of the bed are compensated for with each setting of the Z=0 datum.

                  G31 sets the location where the probe will be triggered - so in my case it is a piezo sensor which is triggered when the nozzle impacts the bed. So a -0.7mm makes sense as that is when the nozzle will actually contact the bed?

                  Not exactly. When the Z probe is triggered the Z trigger height value in G31 is used to set the firmware's Z position value so that the firmware "knows" where the nozzle is positioned on the Z axis. If the value in G31 is wrong the firmware's "knowledge" of the nozzle position will be wrong.

                  Home Z will move the head/bed (bed in my case) to the end stop, which will reference that location as zero.

                  Just as the G31 Z trigger height value is used to set the Z position value when the Z probe is triggered the G92 Znnn is used to set the Z position value when the end stop is triggered. Naturally the nnn value needs to match the actual Z position when the end stop is triggered.

                  Then mesh compensation will apply the additional compensation it has found above or below the Z point. The G30 datum point - sets the location at which the mesh map will be applied from? or does it overrride the G31 in config.g?

                  The G30 sets the Z=0 datum. The G29 probing is determining the Z difference at each probe point in reference to the point used for G30 - the differences can be plus or minus. Thus the same XY position must always be used when setting the Z=0 datum with G30.

                  Since the Z=0 datum determines the plus/minus Z values in the height map it is necessary to use G30 when creating the height map AND when loading the height map.

                  If for some reason the Z=0 datum used when creating the height map differs significantly from the Z=0 datum used when later loading the height map you can get the error about the Z offset.

                  I hope that covers it and I have'nt made any errors - it's late here.

                  Frederick

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

                  laelundefined 1 Reply Last reply Reply Quote 1
                  • laelundefined
                    lael @fcwilt
                    last edited by

                    @fcwilt So if no G30 was used prior to loading a mesh map, what does it use as the datum? the value from G31, or maybe the current zero point?

                    1 Reply Last reply Reply Quote 0
                    • laelundefined
                      lael @Phaedrux
                      last edited by

                      @Phaedrux I know a lot of people don't, however, with a piezo they will trigger during travel moves as well, so while good as a probe are an unreliable z stop.

                      Plus, the way I have it set up if the probe fails, the optical end stop will stop the machine. If that sensor fails in the heated chamber, then the estop connected limit switch will prevent hardware damage.

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

                        That's fine. There's nothing wrong with using both an endstop and a probe. The important thing to avoid unintended offsets with the mesh, is to ensure the probe is used to set Z0 before the mesh is created or loaded. So as long as you're doing a G30 before G29 or G29 S1, you're good to go.

                        If no G30 is used before loading the heightmap the Z position is defined by your endstop if that's what you've used to home it. In other words, it'll be whatever the distance is between your nozzle tip and bed surface when the endstop is triggered.

                        Z-Bot CoreXY Build | Thingiverse Profile

                        1 Reply Last reply Reply Quote 0
                        • laelundefined
                          lael
                          last edited by lael

                          ok, so I've modified start.g to include a G92 Z0 using the probe as follows:

                          G28 ;home all axis

                          changes here:
                          G0 X130 Y130 Z10 ; go to bed center, 10mm above
                          G30 S-1 ; test - send to probe contact with bed
                          G92 Z0 ; set Z0 to probe contact on bed (hoping that then G30 will account for actual bed height...)

                          G0 X130 Y130 Z10 ; go to bed center, 10mm above
                          G30 ; probe for datum ref point
                          G29 S1 ; Load Grid Compensation
                          T0 ; Selects Tool 0 (active temp)
                          M703 ; Ensure filament specific settings are loaded
                          G1 X10 Y10 ; move close to origin

                          That seems to be giving the expected results from mesh levelling, but is that a bad idea?

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

                            @lael said in Mesh levelling on 3.1.1:

                            G0 X130 Y130 Z10 ; go to bed center, 10mm above
                            G30 ; probe for datum ref point
                            G29 S1 ; Load Grid Compensation

                            As long as that matches what you do before you create the mesh it should be fine.

                            @lael said in Mesh levelling on 3.1.1:

                            G30 S-1 ; test - send to probe contact with bed
                            G92 Z0 ; set Z0 to probe contact on bed (hoping that then G30 will account for actual bed height...)

                            Not sure why you'd have that in start.g, but the G30 afterwards is what matters.

                            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