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

    Double motor axis homing question

    Scheduled Pinned Locked Moved Solved
    Tuning and tweaking
    6
    13
    506
    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.
    • droftartsundefined
      droftarts administrators @JuL
      last edited by

      @JuL You could probably do this with conditional Gcode, for example:

      • check before homing if either endstop switch is triggered, but not both or neither
        • if so try homing the axis but only 20mm.
        • If that doesn't succeed, notify the operator.
      • Otherwise, home normally.

      Would that work?

      Ian

      Bed-slinger - Mini5+ WiFi/1LC | RRP Fisher v1 - D2 WiFi | Polargraph - D2 WiFi | TronXY X5S - 6HC/Roto | CNC router - 6HC | Tractus3D T1250 - D2 Eth

      1 Reply Last reply Reply Quote 0
      • JuLundefined
        JuL
        last edited by

        I should give it à try. Thx

        1 Reply Last reply Reply Quote 0
        • JuLundefined
          JuL
          last edited by

          So I manage to check with conditionnal and it works. But, there is a major issue in firmware I discovered during my test. Its a critical safety bug in my opinion. Firmware check during homing move if sensor is hit, but doesn't care if not. If you don't hit sensor, the move continue to distance you specify, stop and do the second pass as well without controlling after complete distance. Ok, I can test it with conditionnal, but I really don't understand this kind of homing procedure inside a so good board.

          droftartsundefined dc42undefined 2 Replies Last reply Reply Quote 0
          • droftartsundefined
            droftarts administrators @JuL
            last edited by

            @JuL Your homing move should be longer than your axis, that way it should always hit and endstop. If it doesn't hit, it just goes as far as you tell it. If it hasn't hit an endstop, I don't think the axis is marked as homed. How is this a critical safety bug?

            Ian

            Bed-slinger - Mini5+ WiFi/1LC | RRP Fisher v1 - D2 WiFi | Polargraph - D2 WiFi | TronXY X5S - 6HC/Roto | CNC router - 6HC | Tractus3D T1250 - D2 Eth

            JuLundefined 1 Reply Last reply Reply Quote 0
            • JuLundefined
              JuL @droftarts
              last edited by

              @droftarts said in Double motor axis homing question:

              I don't think the axis is marked as homed.

              Here is the problem, it's homed. I'tried again with my Z axis (1 motor, short stroke), the same

              deckingmanundefined 1 Reply Last reply Reply Quote 0
              • deckingmanundefined
                deckingman @JuL
                last edited by

                @JuL I'm not sure that I understand what you say is happening. At the start of any homing move, the first thing that happens is that the axis is flagged as not homed. Then when the homing move proceeds, the axis will remain flagged as not homed until the end stop triggers. As soon as the end stop triggers, the axis will be marked as homed but if the homing switch never triggers, then the axis will never be flagged as homed. That's what normally happens so can you explain in detail what you observe is happening in your case. Is it possible that you have a wiring issue such that you get false triggers from the end stop switch?

                Ian
                https://somei3deas.wordpress.com/
                https://www.youtube.com/@deckingman

                1 Reply Last reply Reply Quote 0
                • gloomyandyundefined
                  gloomyandy
                  last edited by droftarts

                  I notice that you have G92 Y0 in your homey.g file, I think that this will set the axis as being homed (someone please confirm), which may be contributing to the problems you are seeing.

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

                    @gloomyandy said in Double motor axis homing question:

                    G92 Y0 in your homey.g file,

                    This will indeed force the position of the axis and mark it as homed.

                    Z-Bot CoreXY Build | Thingiverse Profile

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

                      @JuL said in Double motor axis homing question:

                      So I manage to check with conditionnal and it works. But, there is a major issue in firmware I discovered during my test. Its a critical safety bug in my opinion. Firmware check during homing move if sensor is hit, but doesn't care if not. If you don't hit sensor, the move continue to distance you specify, stop and do the second pass as well without controlling after complete distance. Ok, I can test it with conditionnal, but I really don't understand this kind of homing procedure inside a so good board.

                      To avoid this:

                      1. Always use normally closed endstop switches. That way, if an endstop switch becomes disconnected, it will appear to be triggered to RRF.

                      2. Never use a G92 command to set the homed position in the homing files, because that will flag the axis as homed even if the endstop switch has not been triggered. Set the M208 limits correctly instead.

                      3. If you want to handle the case of the endstop switch becoming disconnected, read the state of the switch near the start of the corresponding homing file(s). If you find the switch is already triggered, use a suitable G1 H2 move to back off a few mm from the switch. If that fails to change the homing switch state to not triggered, report an error using M591 and abort the homing file.

                      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
                      • JuLundefined
                        JuL
                        last edited by

                        My bad, I didn't expect g92 set position AND flag as homed. Thx for pointing me my mistake

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