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

    Once again Z min endstop, BLtouch G29 and G32 correct using

    Scheduled Pinned Locked Moved
    General Discussion
    4
    7
    511
    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.
    • buttonundefined
      button
      last edited by button

      Hi!
      In my printer I have Zmin endstop (I want to keep it, but will write about that later) and BLtouch.
      I would like to know how should looks correct procedure for making bed mesh compensation and true bed leveling.

      How I'm doing that (every time I remove glass and put it back again):
      I'm heating the bed.
      Sending G32 command to adjuts 4 Z motors. My bed.g looks like that:

      M561 ; clear any bed transform
      G1 Z5 F1500
      G1 X152 Y185 F6000
      G30
      G30 P0 X1 Y5 Z-99999
      G30 P1 X1 Y280 Z-99999 
      G30 P2 X304 Y280 Z-99999
      G30 P3 X304 Y5 Z-99999 S4
      G1 X0 Y-10 Z5 F6000
      

      after that i have macro for G30 before G29 (would be great to have macro that is running when starting G29 - eg. heat nozzle, do G30 etc):

      G29 S2
      G1 Z5 F1500
      G1 X152 Y185 F6000
      G30
      G1 Z5 F1500
      G1 X0 Y-4 F6000
      

      now I'm doing G29 and after that i have everything done.

      When I'm starting print my start g-code looks like that:

      ...
      G10 P0 S0 R0 ; set extruder temperature to 0
      M140 S[first_layer_bed_temperature] ; heat bed
      G28 ; home all axes
      M190 S[first_layer_bed_temperature] ; wait for bed temp
      G29 S2 ; clear bed compensation
      G10 P0 S150 ; nagrzej dysze do 150
      G32 ; Bed leveling 
      G29 S1 ; load leveling map
      ....
      

      Is this procedure correct in your opinion?

      I want to keep Zmin endstop because:
      printhead is outside bed area
      in my other 2 printers with Marlin firmware it works great (Zendstop and BLtouch)

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

        Yes you can have endstop and probe both defined. The endstop is used with a G1 H1 Z movement to trigger the endstop. The probe is used with G29 and G30. Just be aware that you should be setting your Z0 position with the probe before and after the auto leveling and the same for the mesh creation or loading and before the print.

        You haven't posted your homeall so I can't say if there are any issues with what you have, but there could be.

        In your bed.g I would add another G30 at the end to re-establish the z0 position after the tilt correction has been done since it may have changed.

        Like so:

        M561 ; clear any bed transform
        G1 Z5 F1500
        G1 X152 Y185 F6000
        G30
        G30 P0 X1 Y5 Z-99999
        G30 P1 X1 Y280 Z-99999 
        G30 P2 X304 Y280 Z-99999
        G30 P3 X304 Y5 Z-99999 S4
        G1 X152 Y185 F6000
        G30
        G1 X0 Y-10 Z5 F6000
        

        If you did that, based on your current sequence of gcodes you should not have any issues.

        Z-Bot CoreXY Build | Thingiverse Profile

        buttonundefined 1 Reply Last reply Reply Quote 1
        • buttonundefined
          button @Phaedrux
          last edited by button

          @Phaedrux

          G91                   ; relative positioning
          G1 H2 Z5 F2400        ; lift Z relative to current position
          G1 H1 X-304 Y320 F3000 ; move quickly to X and Y axis endstops and stop there (first pass)
          G1 H2 X5 Y-5 F6000   ; go back a few mm
          G1 H1 X-304 Y320 F300  ; move slowly to X and Y axis endstops once more (second pass)
          G1 H2 Y-320 F4800
          G1 H1 Z-300 F600      ; move Z down stopping at the endstop
          G1 H2 Z3 F2400
          G1 H1 Z-300 F180
          G90                   ; absolute positioning
          G1 Z5 F1200				; lift Z
          

          This is my homeall.g

          Thank you for sugestion with another G30 at end of G32

          Vetiundefined 1 Reply Last reply Reply Quote 0
          • Vetiundefined
            Veti @button
            last edited by

            @button said in Once again Z min endstop, BLtouch G29 and G32 correct using:

            Thank you for sugestion with another G30 at end of G32

            because the G32 adjust the tilt. therefore the Homing point height might change.

            1 Reply Last reply Reply Quote 0
            • Stephen6309undefined
              Stephen6309 @button
              last edited by

              @button Where you have you G29 S1, you could change to this:
              M561 ; clear any bed transform
              G29 S1
              if result > 1
              G29 S0

              As long as heightmap.csv exists, it will always load the height map. When heightmap.csv is deleted, you get a new one made.

              buttonundefined 1 Reply Last reply Reply Quote 0
              • buttonundefined
                button @Stephen6309
                last edited by button

                Before today playing with printer reading from G32 were:
                alt text

                I'm finalizing screwing and tensioning everything back and I'll post what readings I have now.

                2 gantrys where completely not tensioned...

                EDIT
                After mechanical corrections:
                alt text

                How should it looks? Is this reading is ok?

                BTW:
                What's doing F parameter in M671 command?

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

                  @button said in Once again Z min endstop, BLtouch G29 and G32 correct using:

                  What's doing F parameter in M671 command?

                  https://duet3d.dozuki.com/Wiki/Gcode?revisionid=HEAD#Section_M671_Define_positions_of_Z_leadscrews_or_bed_levelling_screws

                  It's a fudge factor. So if it's always a little over or under on it't correction on the first pass you can adjust the F parameter to make it have more or less effect.

                  The readings don't mean a lot to me looking at them. The real question is whether it's having the right effect on your bed tilt.

                  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