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

    Meaning of move.axes[n].homed

    Scheduled Pinned Locked Moved
    Gcode meta commands
    3
    4
    282
    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.
    • hlwerschnerundefined
      hlwerschner
      last edited by

      The documentation simply states that the value of "move.axes[n].homed" reflects the "homed state" of that axis. Does this mean:
      (a) At some time BEFORE inspecting this value, there was a gcode "G28 X" for n = 0 resp G28 Y or G28 Z done which caused a homing to be executed somwhow.
      or
      (b) the respectiv axis is "homed"
      i.e. its current position == move.axes[n].min
      I am a bit unsure what "homed" really means ... and how long it is valid. The only experience I have is that M999 or a gcde that stops axis motors, will set homed = false.
      I have several macros where I assumed that homed = true implies that the current axis position = at the min axis position AND that the endstop switch would be triggered /when defined) for the min pos).
      Is it perhaps better to check for the endstop state also?

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

        @hlwerschner it means that the firmware knows the position of that axis, because that axis has previously had a homing procedure run and the motor has not been turned off since then.

        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

        hlwerschnerundefined 1 Reply Last reply Reply Quote 0
        • hlwerschnerundefined
          hlwerschner @dc42
          last edited by

          @dc42 Ah yes, that clarifies. So the position of that axis may be any value.

          1 Reply Last reply Reply Quote 0
          • mikeabuilderundefined
            mikeabuilder
            last edited by

            The location of an axis is found with this
            move.axes[n].machinePosition

            Returns null if the position is unknown (machine not homed).

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Unless otherwise noted, all forum content is licensed under CC-BY-SA