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

    Stop movement immediatly

    Scheduled Pinned Locked Moved
    Gcode meta commands
    4
    7
    279
    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.
    • D.J. Klompundefined
      D.J. Klomp
      last edited by D.J. Klomp

      I want my endstop configured to stop movement immediatly in all case, whether I manually move it, or move it when running a file or macro.

      After homing I reconfigure my endstops with: M581 X T2 S1 ;Reconfigure endstop to be used as limit switches (triggers). Triggers macro trigger2.g

      In trigger2.g I tried all options:

      ;M291 P"X limit switch triggered" R"trigger2" S0
      ;M0		;Stop after buffer is completed
      ;M25		;Pause print from SD card.
      ;M1		;Sleep after buffer is completed
      
      ;M226	        ;Gcode initiated pause
      M18 X		;Disable stepper motor, and resets homing does not work immideatly
      ;M84 X		;Stops the x motor, idle hold and resets homing, Does not works immediatly
      ;M112		;Emergency stop, everyhting shuts down immediatly
      

      But only M112 reacts instantly, and that is not what I want.
      M18 X kind of does what I want, but I need the axis to stop, I do not want to reinitialize homing.

      Any suggestions?

      oliofundefined T3P3Tonyundefined droftartsundefined 3 Replies Last reply Reply Quote 0
      • oliofundefined
        oliof @D.J. Klomp
        last edited by

        @D-J-Klomp a bit hacky, but maybe setting motor current to 0 can work? you will still lose position so I think you won't be able to avoid rehoming.

        <>RatRig V-Minion Fly Super5Pro RRF<> V-Core 3.1 IDEX k*****r <> RatRig V-Minion SKR 2 Marlin<>

        D.J. Klompundefined 2 Replies Last reply Reply Quote 0
        • T3P3Tonyundefined
          T3P3Tony administrators @D.J. Klomp
          last edited by

          @D-J-Klomp if you want to pause and maintain position, then try increasing the segmentation.

          www.duet3d.com

          1 Reply Last reply Reply Quote 0
          • droftartsundefined
            droftarts administrators @D.J. Klomp
            last edited by

            @D-J-Klomp Rather than post code with a semicolon in front of it, which is confusing as this is a comment in RRF code, please try using the 'Code' format from the toolbar above where you compose your message. The icon for this looks like this: </>
            This will create a paragraph enclosed by three back-ticks before it, and three after: ```
            Place your code between them, eg:

            M291 P"X limit switch triggered" R"trigger2" S0
            M0 ;Stop after buffer is completed
            M25 ;Pause print from SD card.
            M1 ;Sleep after buffer is completed
            

            In the message editor, this looks like:

            ```
            [code here]
            ```

            Formatting code clearly and correctly will help us help you.

            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
            • D.J. Klompundefined
              D.J. Klomp @oliof
              last edited by D.J. Klomp

              @T3P3Tony Yeah this is a workaround that I am familiar with and is already enforced, but that only works for printed files. I do not like it that much since I need to set limitations to what my colleagues develop and it makes the file much larger than they have to be. One problem is that it does not work for manual movement which I would also like.

              T3P3Tonyundefined 1 Reply Last reply Reply Quote 0
              • D.J. Klompundefined
                D.J. Klomp @oliof
                last edited by

                @oliof Indeed a bit hacky but might work, I will try this.

                1 Reply Last reply Reply Quote 0
                • T3P3Tonyundefined
                  T3P3Tony administrators @D.J. Klomp
                  last edited by

                  @D-J-Klomp

                  similar tot his thread;
                  https://forum.duet3d.com/topic/35152/emergency-stop/11
                  Did you try M0?

                  www.duet3d.com

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