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

    Quick question ref M18

    Scheduled Pinned Locked Moved
    Tuning and tweaking
    2
    2
    528
    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.
    • deckingmanundefined
      deckingman
      last edited by

      I've got switches on all my axes maxima, wired together and connected to a spare E stop input. The idea being that it'll stop me doing damage if I do something stupid like send an axis outside it's normal parameters before it has been homed. I'm using M581 and currently using trigger 0. Setting it do an emergency stop like this can be a bit annoying if I'm working on the printer and manually move an axis out of the way such that it hits the limit switch, as I then have to do a reset. So I was thinking of making a sys/trigger2 file and putting M18 in it. Will that work? Basically all I want to do is kill the motors if one of the axes hits a maximum limit switch but leave everything else running normally. So if M18 isn't the correct approach what would be? I'm assuming that sending any command to a motor will automatically re-enable it. Is that also correct? Thanks in advance. Ian

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

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

        M18 will wait until all queue moves are finished before it takes effect, so it's not much use here. I can't remember whether M906 and M913 also wait or not.

        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