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

    how to know if previous z probe with G30 was successfull or not

    Scheduled Pinned Locked Moved
    Gcode meta commands
    3
    3
    117
    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.
    • psychotik2k3undefined
      psychotik2k3
      last edited by psychotik2k3

      Hi,
      i'm on reprapfirmware 3.5.4 on duet H6C with 3 expantion toolboard

      my printer got 2 Z axis motors and unfortunately sometimes one of these two is not correctly aligned , even somtimes very skewed.

      i may have up to 6-8mm of offset between the 2 sides of my bed.

      i do have a auto leveling macro but as i put 3mm as S parameter for the M671

      M671 X372:-62 Y160.9:160.9 S3
      

      when i have too much skew the probe don't go until it hit the bed and i got this error message:

      G30 P1 X17 Y140.9 Z-99999 S-1
      Error: M280: Probe was not triggered during probing move
      

      unfortunately the macro continue as if no error but the bed is not leveled at all.

      my question is how can i get if the probe failed ?

      i know i can retrieve the last probe value when it worked by using the model object variable

      sensors.probes[0].lastStopHeight
      

      this way if i'm able to retrieve the error then i'll be able to do raise only one side of my bed and retry to level it.

      thanks for your help

      fcwiltundefined dc42undefined 2 Replies Last reply Reply Quote 0
      • fcwiltundefined
        fcwilt @psychotik2k3
        last edited by

        @psychotik2k3

        I had this problem on a printer with three Z axis steppers.

        I solved it by installing actual end-stop sensors on each Z axis and carefully positioning them so that triggered very close to the same Z height.

        By doing that I was able to do normal G1 H1 homing moves since the firmware understands how to deal with multiple Z axes each having their own end-stop.

        Here is a link to a quick-and-dirty video showing how a very out-of-level bed can be quickly gotten close to level so that the Z probe can take over for the final leveling.

        Leveling Video

        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
        • dc42undefined
          dc42 administrators @psychotik2k3
          last edited by dc42

          @psychotik2k3 you can test 'result' after the G30 command to test whether it succeeded. For example:

          G30 ....
          If result != 0
            abort 'Probing failed"```

          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
          • First post
            Last post
          Unless otherwise noted, all forum content is licensed under CC-BY-SA