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

    M915: Configure motor stall detection

    Scheduled Pinned Locked Moved
    Using Duet Controllers
    2
    2
    11
    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.
    • R006undefined
      R006
      last edited by R006

      I am using a Duet 3 board with three Z-axis stepper motors connected. If any motor connector becomes disconnected, a warning message appears:
      "Driver 0.4 Phase A or B may be disconnected."
      **I would like to implement code that automatically performs the following actions when this warning is triggered:

      1. Immediately disable all motors.
      2. Display the message: "Please check Z motor connection."**

      I have tried using stall detection and created a driver-warning.g file with the following command:
      M915 Z0.2:0.4:0.5 S2 R3
      However, this approach did not work as expected. I am testing this on a table-top setup.

      @dc42 @Phaedrux

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

        @R006 stall detection is not relevant to detecting open-load conditions, however the driver-warning.g file should catch it if you are running a sufficiently recent version of RRF.

        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