Duet3D Logo

    Duet3D

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • Documentation
    • Order

    Determining if an axis is moving

    Duet Hardware and wiring
    3
    6
    92
    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.
    • ct
      ct last edited by

      I am sending individual commands using the serial port. Is there a way to determine if an axis is moving or has reached its destination?

      1 Reply Last reply Reply Quote 0
      • Danal
        Danal last edited by

        Not really "determine", but an M400 after the original command will not execute any more commands until the planner queue is empty and moves have completed.

        This may accomplish what you want in a different way.

        Delta / Kossel printer fanatic

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

          You could use M408 to poll the status, waiting for the status to be idle. But sending M400 and waiting for the OK response may be simpler.

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

            Thank you for both replies. M400 will give me what I need though I can see a use for M408. Is there a recommend poll frequency?

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

              @ct said in Determining if an axis is moving:

              Thank you for both replies. M400 will give me what I need though I can see a use for M408. Is there a recommend poll frequency?

              No more than 4 times/second.

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

                Thanks for the information.

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