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

Height Map - Substantial z-offset after setting z-offset

Scheduled Pinned Locked Moved Solved
Tuning and tweaking
4
66
3.8k
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.
  • undefined
    TimsWorkshop
    last edited by 2 Oct 2021, 01:29

    Thanks @Pakue and @fcwilt

    I'll add the G28 and re-run to see if that helps, good suggestion.

    @fcwilt - I thought I was setting my z=0 datum when I was doing my offsets, guess this terminology still has me confused. Here's the other files as requested:

    homez.g

    ; homez.g
    ; called to home the Z axis
    ;
    ; generated by RepRapFirmware Configuration Tool v3.3.0 on Sun Aug 08 2021 21:27:13 GMT+1000 (Australian Eastern Standard Time)
    G91 ; relative positioning
    G1 H2 Z{global.g_z_home} F6000 ; lift Z relative to current position
    G90 ; absolute positioning
    ; Probing Z home setup
    M98 P"configs/zhome_config.g"

    zhome_config.g

    ; Go to center of the bed and probe
    M98 P"configs/center_probe.g"
    M558 F900 ; Home EZABL Fast 15mm/s
    G30 ; home Z by probing the bed
    M558 F450 ; Home EZABL Slow 7.5mm/s
    G30 ; home Z by probing the bed

    center_probe.g

    ; center_probe.g
    G90 ; absolute moves
    ; move probe to center of bed
    G1 X{((move.axes[0].max + move.axes[0].min) / 2) + sensors.probes[0].offsets[0]}, Y{((move.axes[1].max + move.axes[1].min) / 2) + sensors.probes[0].offsets[1]}, F6000

    Ender 5 Plus - E3D Hemera Hotend - Duet 2 Wifi

    undefined 1 Reply Last reply 2 Oct 2021, 01:43 Reply Quote 0
    • undefined
      fcwilt @TimsWorkshop
      last edited by 2 Oct 2021, 01:43

      @infidelprops said in Height Map - Substantial z-offset after setting z-offset:

      The terminology can be confusing.

      I thought I was setting my z=0 datum when I was doing my offsets,

      What do you mean by the above?


      In any case it looks like you have the file needed (zhome_config.g) to set the Z=0 Datum.

      Just M98 this file in your mesh.g file right before the G29 S0.


      Now just out of curiosity why do you have a folder named "configs"?

      There is nothing, absolutely nothing wrong with doing that, I was just wondering why. At my age (71) I would find it confusing to have to look in multiple folders for my files.

      Frederick

      Printers: a small Utilmaker style, a small CoreXY and a E3D MS/TC setup. Various hotends. Using Duet 3 hardware running 3.4.6

      undefined 2 Replies Last reply 2 Oct 2021, 01:52 Reply Quote 0
      • undefined
        TimsWorkshop @fcwilt
        last edited by 2 Oct 2021, 01:52

        @fcwilt said in Height Map - Substantial z-offset after setting z-offset:

        @infidelprops said in Height Map - Substantial z-offset after setting z-offset:

        The terminology can be confusing.

        I thought I was setting my z=0 datum when I was doing my offsets,

        What do you mean by the above?


        Apologies... In my brain, when I set my z-offset using the G30-S1 to look trigger height variance and then setting that it in my G31 of probe_config.g, I thought that was setting my z=0 datum - I am probably wrong.


        So because I have some macros to calculate my absolute centre, and then I probe this point to set my probe height at centre, is this setting my z=0 datum?

        This is my updated mesh.g

        ; ######################################################
        ;mesh g - manually configured
        ; ######################################################
        M98 P"configs/probe_config.g" ; configure Z probe
        M98 P"configs/zhome_config.g" ; configure z=0 datum (this still confuses me on how this is set)
        ; ######################################################
        ; Probe bed and create Heightmap
        ; ######################################################
        M561 ; clear any bed transform
        G28 Z
        M557 X90:400 Y15:360 P2 ; define probe area and points
        G29 S0 ; probe and save height map

        Ender 5 Plus - E3D Hemera Hotend - Duet 2 Wifi

        undefined 1 Reply Last reply 2 Oct 2021, 02:18 Reply Quote 0
        • undefined
          TimsWorkshop @fcwilt
          last edited by 2 Oct 2021, 01:54

          @fcwilt said in Height Map - Substantial z-offset after setting z-offset:

          Now just out of curiosity why do you have a folder named "configs"?

          There is nothing, absolutely nothing wrong with doing that, I was just wondering why. At my age (71) I would find it confusing to have to look in multiple folders for my files.

          Frederick

          No problem, happy to answer... I used to be a pretty hard code web developer and I always like to keep certain files in specific folders so when adding new functionality/editing/troubleshooting, I always know exactly where to go. Could also very well just be an OCD thing. 😉

          Ender 5 Plus - E3D Hemera Hotend - Duet 2 Wifi

          undefined 1 Reply Last reply 2 Oct 2021, 02:01 Reply Quote 0
          • undefined
            TimsWorkshop
            last edited by 2 Oct 2021, 01:56

            So I added that config to mesh.g and re-ran G29, still the huge z-offset... I must be missing a step!

            Ender 5 Plus - E3D Hemera Hotend - Duet 2 Wifi

            1 Reply Last reply Reply Quote 0
            • undefined
              fcwilt @TimsWorkshop
              last edited by 2 Oct 2021, 02:01

              @infidelprops said in Height Map - Substantial z-offset after setting z-offset:

              I always know exactly where to go.

              I was a programmer for 30+ years but now given the limited number of files I put them in one place and I always know where they are - the System folder.

              71 year old brains crave simplicity. 😉

              Thanks.

              Frederick

              Printers: a small Utilmaker style, a small CoreXY and a E3D MS/TC setup. Various hotends. Using Duet 3 hardware running 3.4.6

              undefined undefined 2 Replies Last reply 2 Oct 2021, 02:15 Reply Quote 1
              • undefined
                TimsWorkshop @fcwilt
                last edited by 2 Oct 2021, 02:15

                @fcwilt totally get that!

                And not sure if you saw, but I added the additional config to mesh.g and I'm still getting the large offset when probing.

                Ender 5 Plus - E3D Hemera Hotend - Duet 2 Wifi

                undefined 1 Reply Last reply 2 Oct 2021, 02:28 Reply Quote 0
                • undefined
                  fcwilt @TimsWorkshop
                  last edited by 2 Oct 2021, 02:18

                  @infidelprops said in Height Map - Substantial z-offset after setting z-offset:

                  This is my updated mesh.g

                  ; ######################################################
                  ;mesh g - manually configured
                  ; ######################################################
                  M98 P"configs/probe_config.g" ; configure Z probe
                  M98 P"configs/zhome_config.g" ; configure z=0 datum (this still confuses me on how this is set)
                  ; ######################################################
                  ; Probe bed and create Heightmap
                  ; ######################################################
                  M561 ; clear any bed transform
                  G28 Z
                  M557 X90:400 Y15:360 P2 ; define probe area and points
                  G29 S0 ; probe and save height map

                  That looks to be correct.

                  I'm working on a response to discuss G30 S-1 and G31.

                  Frederick

                  Printers: a small Utilmaker style, a small CoreXY and a E3D MS/TC setup. Various hotends. Using Duet 3 hardware running 3.4.6

                  1 Reply Last reply Reply Quote 0
                  • undefined
                    fcwilt @TimsWorkshop
                    last edited by fcwilt 10 Feb 2021, 02:36 2 Oct 2021, 02:28

                    @infidelprops

                    In my brain, when I set my z-offset using the G30-S1 to look trigger height variance and then setting that it in my G31 of probe_config.g, I thought that was setting my z=0 datum - I am probably wrong.

                    The problem with using G30 S-1 to report the trigger height is it presumes that the logical Z position (what the firmware "thinks" the Z position is) matches the physical Z position.

                    Consider this:

                    You jog Z till the tip of the nozzle is exactly 5mm off the surface of the bed which you determined by measuring it with a ruler/scale/thickness gauge.

                    At that point we know the physical Z position is 5.

                    If the logical position matches the physical position the DWC will display 5.

                    If the DWC displays some other number the logical position position is "out-of-sync" with the physical position and it needs to be corrected.

                    Now assume the probe triggers when the tip of the nozzle is exactly 2mm off the surface of the bed.

                    We haven't moved the nozzle so it is still 5mm off the bed.

                    Now we execute G92 Z10 telling the firmware the current position of the nozzle is 10mm off the bed - which it is not - we are lying to the firmware - and it is going to hold that against us. 😉

                    Now do a single G30 S-1. The nozzle begins to drop and after 3mm of movement it is 2mm off the bed and that is the point at which the probe triggers.

                    The probing stops and reports the Z position is not 2mm but 7mm because the firmware believed us (even though we lied) and it thinks it started probing from 10mm.

                    Does that much make sense. I have more to add.

                    Frederick

                    Printers: a small Utilmaker style, a small CoreXY and a E3D MS/TC setup. Various hotends. Using Duet 3 hardware running 3.4.6

                    undefined 1 Reply Last reply 2 Oct 2021, 02:34 Reply Quote 1
                    • undefined
                      TimsWorkshop @fcwilt
                      last edited by 2 Oct 2021, 02:34

                      @fcwilt Yeah that all makes sense, but where I get stuck is if using G30 S-1 to get my trigger height is inaccurate, what's the best method to set my G31 Probe Z-offset?

                      Ender 5 Plus - E3D Hemera Hotend - Duet 2 Wifi

                      undefined 1 Reply Last reply 2 Oct 2021, 03:11 Reply Quote 0
                      • undefined
                        fcwilt @TimsWorkshop
                        last edited by 2 Oct 2021, 03:11

                        @infidelprops said in Height Map - Substantial z-offset after setting z-offset:

                        @fcwilt Yeah that all makes sense, but where I get stuck is if using G30 S-1 to get my trigger height is inaccurate, what's the best method to set my G31 Probe Z-offset?

                        The problem with the "G30 S-1' approach is you are trying to calibrate the probe using the probe to do the calibration.

                        That clearly won't work.

                        Any calibration has to be done against some other accurate standard, something independent of the probe we are trying to calibrate.

                        I use a 1mm thickness gauge as opposed to something thin like a piece of paper.


                        You can likely start with a G31 Z Trigger Height setting of 0 which for most probes is going to be too small.

                        You begin by moving the probe to the center of the bed.

                        Then you do G1 Z10 followed by a G30. If the probe fails to trigger just use a smaller value as the starting Z position, say G1 Z5.

                        After the probing is complete you carefully jog down until the tip of the nozzle is just touching the thickness gauge and you now know the physical Z position is 1mm.

                        You check the DWC to see what it reports, which is the logical Z position.

                        If it doesn't report 1 then the G31 Z Trigger Height setting needs to be adjusted and the process repeated until you find the setting that does display 1.

                        Larger Z Trigger Height values will reduce the displayed value.

                        Frederick

                        Printers: a small Utilmaker style, a small CoreXY and a E3D MS/TC setup. Various hotends. Using Duet 3 hardware running 3.4.6

                        undefined 1 Reply Last reply 2 Oct 2021, 03:46 Reply Quote 1
                        • undefined
                          TimsWorkshop @fcwilt
                          last edited by TimsWorkshop 10 Feb 2021, 03:47 2 Oct 2021, 03:46

                          @fcwilt Thanks!

                          So I've got a 1.5mm wrench here and used that, ran the above steps and had it reporting correctly on DWC which had my offset a 0.890

                          I set that in my G31 in my probe, re-ran a MBL (G32) and it's 0.00 adjustment neeeded all around
                          Ran a 4 pt probe test, and still the same problem...
                          54816ba7-ea09-4e7e-a8d5-9a74d894406d-image.png

                          I feel like I'm doing everything right, don't know why this is reporting so badly.

                          Ender 5 Plus - E3D Hemera Hotend - Duet 2 Wifi

                          undefined 1 Reply Last reply 2 Oct 2021, 03:52 Reply Quote 0
                          • undefined
                            fcwilt @TimsWorkshop
                            last edited by 2 Oct 2021, 03:52

                            @infidelprops said in Height Map - Substantial z-offset after setting z-offset:

                            So I've got a 1.5mm wrench here and used that, ran the above steps and had it reporting correctly on DWC which had my offset a 0.890

                            What do you mean by "had my offset a 0.890"?


                            Another approach is to pick a starting value for the Z Trigger height.

                            Do your G30 probe at bed center.

                            Do a G90 G1 Znn using the thickness of your "gauge" for nnn and see if the gap between nozzle and bed is "just right".

                            Frederick

                            Printers: a small Utilmaker style, a small CoreXY and a E3D MS/TC setup. Various hotends. Using Duet 3 hardware running 3.4.6

                            undefined 1 Reply Last reply 2 Oct 2021, 03:56 Reply Quote 1
                            • undefined
                              TimsWorkshop @fcwilt
                              last edited by 2 Oct 2021, 03:56

                              @fcwilt said in Height Map - Substantial z-offset after setting z-offset:

                              @infidelprops said in Height Map - Substantial z-offset after setting z-offset:

                              So I've got a 1.5mm wrench here and used that, ran the above steps and had it reporting correctly on DWC which had my offset a 0.890

                              What do you mean by "had my offset a 0.890"?

                              When I reset my G31 Z offset to 0, I reset the machine and then homed all axes, then homed z.
                              DWC was reporting my Z at 3
                              I put the 1.5mm wrench under the nozzle and adjusted the tip down 1.5mm and it wasn't touching the wrench yet.
                              I lowered it another 0.89mm to get it touching the wrench and set that in my G31 for my Z offset.
                              Reset the machine again and then homed all, homed z, put the wrench under the nozzle and lowered it to 1.5mm and it was touching the wrench.

                              Ender 5 Plus - E3D Hemera Hotend - Duet 2 Wifi

                              undefined 1 Reply Last reply 2 Oct 2021, 04:04 Reply Quote 0
                              • undefined
                                fcwilt @TimsWorkshop
                                last edited by 2 Oct 2021, 04:04

                                @infidelprops said in Height Map - Substantial z-offset after setting z-offset:

                                I lowered it another 0.89mm to get it touching the wrench and set that in my G31 for my Z offset.

                                Got you.

                                The Duet docs use the term "Z Trigger Height" thus my lack of understanding of the term "offset".

                                G31 Parameters..jpg

                                But it sounds like you have found the correct value for use in G31.

                                Using a 4 point test can give misleading results.

                                Are you using the center of the bed for your XY reference point when doing your G30?

                                Frederick

                                Printers: a small Utilmaker style, a small CoreXY and a E3D MS/TC setup. Various hotends. Using Duet 3 hardware running 3.4.6

                                undefined 1 Reply Last reply 2 Oct 2021, 04:50 Reply Quote 1
                                • undefined
                                  TimsWorkshop @fcwilt
                                  last edited by 2 Oct 2021, 04:50

                                  @fcwilt said in Height Map - Substantial z-offset after setting z-offset:

                                  Are you using the center of the bed for your XY reference point when doing your G30?

                                  Frederick

                                  In my zhome_config.g file, I am just using G30 after I centre the bed, so I believe that I am and when I kick off a G29, it does start at the centre fist.

                                  Ender 5 Plus - E3D Hemera Hotend - Duet 2 Wifi

                                  undefined 1 Reply Last reply 2 Oct 2021, 04:55 Reply Quote 0
                                  • undefined
                                    fcwilt @TimsWorkshop
                                    last edited by 2 Oct 2021, 04:55

                                    @infidelprops said in Height Map - Substantial z-offset after setting z-offset:

                                    @fcwilt said in Height Map - Substantial z-offset after setting z-offset:

                                    Are you using the center of the bed for your XY reference point when doing your G30?

                                    Frederick

                                    In my zhome_config.g file, I am just using G30 after I centre the bed, so I believe that I am and when I kick off a G29, it does start at the centre fist.

                                    OK here is how a 4 point grid can be misleading.

                                    Imaging the bed rises or falls from the center to the edges in both X and Y.

                                    When you set the Z=0 Datum in the center of the bed but don't probe near the center of the bed but just the near the edges you can get a picture like yours because all of the probed points are above/below the Z=0 Datum.

                                    Try a 9 point grid which will include a probed point near the center of the bed and I think you will see what I mean.

                                    Frederick

                                    Printers: a small Utilmaker style, a small CoreXY and a E3D MS/TC setup. Various hotends. Using Duet 3 hardware running 3.4.6

                                    undefined 1 Reply Last reply 2 Oct 2021, 05:13 Reply Quote 1
                                    • undefined
                                      TimsWorkshop @fcwilt
                                      last edited by 2 Oct 2021, 05:13

                                      @fcwilt Yeah, I was stating to think my probe points are probably too far in the corners which is why I get the big low hanging gaps.

                                      I upped the points to 3 and started to a similar result:
                                      8b2ff9fc-d1ab-4673-86fa-10a9b34da793-image.png

                                      And then went to 5 points and started seeing the old mesh I used to have, which is slanted on one side:
                                      3e0f65b3-071a-4ff3-9b9e-de47b8ed85c7-image.png

                                      I read another post from a frustated BLT user who said he needed to manually move one of his z-rods to get it set right and I've just dont that and am seeing the slant start to get better...
                                      af62fa44-aac3-46d1-9993-e5c7debc6711-image.png

                                      But I also think that I may want to control my two z motors seperately to get better levelling as right now they only seen as one motor in the config and that may help my slant become more even.

                                      Ender 5 Plus - E3D Hemera Hotend - Duet 2 Wifi

                                      undefined 1 Reply Last reply 2 Oct 2021, 07:19 Reply Quote 0
                                      • undefined
                                        TimsWorkshop @TimsWorkshop
                                        last edited by 2 Oct 2021, 07:19

                                        So just read up and I can't do MBL on my 4 bed screws AND my 2 Z rod screws, so I won't be able to help adjust the slant I've been seeing

                                        Ender 5 Plus - E3D Hemera Hotend - Duet 2 Wifi

                                        undefined 1 Reply Last reply 2 Oct 2021, 08:16 Reply Quote 0
                                        • undefined
                                          fcwilt
                                          last edited by fcwilt 10 Feb 2021, 08:13 2 Oct 2021, 08:12

                                          @infidelprops said in Height Map - Substantial z-offset after setting z-offset:

                                          So just read up and I can't do MBL on my 4 bed screws AND my 2 Z rod screws, so I won't be able to help adjust the slant I've been seeing

                                          If you configure things so ABL can be used with your two steppers you can cannot use the MBL assistant.

                                          But you can use G29 to help you adjust the 4 bed screws - thought it takes a bit of practice.

                                          What you do is create 4 point height maps and based on what you see when you view the height map (or read out from the points of the height map) you adjust 3 of the 4 screws, more of less by trial-and-error, until you are happy with the results.

                                          I've done this in the past and it works pretty well.

                                          Frederick

                                          Printers: a small Utilmaker style, a small CoreXY and a E3D MS/TC setup. Various hotends. Using Duet 3 hardware running 3.4.6

                                          undefined 1 Reply Last reply 2 Oct 2021, 08:16 Reply Quote 0
                                          13 out of 66
                                          • First post
                                            13/66
                                            Last post
                                          Unless otherwise noted, all forum content is licensed under CC-BY-SA