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

    Reset on homing z axis with a z probe

    Scheduled Pinned Locked Moved Solved
    Beta Firmware
    4
    6
    277
    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.
    • ateRstonesundefined
      ateRstones
      last edited by

      We are using a e3d toolchanger based printer with a Duet3d 6HC and a 3HC expansion board with web control. All on version 3.5.0beta4. The problem is not present in 3.4.6 (or 3.4.5).

      When configuring the z axis endstop to be a z probe and then subsequently run a G1 H1 (or even H4) we observe a reset. Further, after the reset, the expansion board is not detected anymore.

      Both the z axis stepper and the probe are connected to the mainboard.

      Relevant section of config.g

      M558 P5 C"io2.in" K0 H3 F360 T20000
      M574 Z1 S2 K0
      

      When we then run z homing we observe reset on the G1 H1 command (tested using the console)

      G91
      G1 H1 Z-200 F2000
      

      M119 gives expected outputs and detects the z probe state change.

      If we define the switch as a regular endstop, z homing functions function. But we require a z probe.

      M574 Z1 S1 P"io2.in"
      

      Full config.g and homez.g:
      homez.g config.g

      gloomyandyundefined Phaedruxundefined 2 Replies Last reply Reply Quote 0
      • gloomyandyundefined
        gloomyandy @ateRstones
        last edited by

        @ateRstones Please post the output from running M122

        ateRstonesundefined 1 Reply Last reply Reply Quote 0
        • ateRstonesundefined
          ateRstones @gloomyandy
          last edited by

          @gloomyandy here you go: m122-homing-problem.txt

          sorry for the late response, I'm only infreqently near the machine atm

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

            @ateRstones said in Reset on homing z axis with a z probe:

            M574 Z1 S2 K0

            That's not quite right.

            https://docs.duet3d.com/User_manual/Reference/Gcodes#m574-set-endstop-configuration

            S2 = Z probe (when used to home an axis other than Z)

            But it sounds like you're actually trying to use it with the Z axis.

            To configure a z probe using a swithc, use M558 and G31 to configure the switch as a probe and use a G30 command in your homing files to use the probe. Leave out the M574 Z line entirely. It's not needed when configuring a probe for Z.

            https://docs.duet3d.com/User_manual/Reference/Gcodes#m558-set-z-probe-type

            https://docs.duet3d.com/en/User_manual/Connecting_hardware/Z_probe_connecting#z-probe-modes-selectable-in-firmware

            You'd want M558 P8 for a switch.

            Z-Bot CoreXY Build | Thingiverse Profile

            1 Reply Last reply Reply Quote 0
            • dc42undefined
              dc42 administrators @ateRstones
              last edited by

              @ateRstones is this resolved?

              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

              ateRstonesundefined 1 Reply Last reply Reply Quote 0
              • ateRstonesundefined
                ateRstones @dc42
                last edited by

                @dc42 the answers were able to resolve the problem, thanks everyone for the help!

                1 Reply Last reply Reply Quote 0
                • droftartsundefined droftarts marked this topic as a question
                • droftartsundefined droftarts has marked this topic as solved
                • First post
                  Last post
                Unless otherwise noted, all forum content is licensed under CC-BY-SA