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

    Stop during stepper motor operation

    Scheduled Pinned Locked Moved
    Gcode meta commands
    4
    5
    260
    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.
    • Dennis_kimundefined
      Dennis_kim
      last edited by Dennis_kim

      I want to stop a running step motor without an external sensor.

      I'm trying to use a step motor like a spindle, but I can't find a way without using an extra board.

      Is it possible to operate a motor connected to the step driver at a constant speed and stop the motor when a specific command is sent?
      I don't want the system to shut down

      I am using Duet 3 Mainboard 6HC.

      markzundefined timothyzundefined 2 Replies Last reply Reply Quote 0
      • markzundefined
        markz @Dennis_kim
        last edited by

        @Dennis_kim The simplest approach is to define the stepper motor as a spindle and then you can set the spindle to a specific speed (and cw or ccw). On my CNC (a Duet3d 6xd) I use the fan2 port because I'm driving a relay, but the 6HC will drive a stepper just fine. The following code sets up the spindle (yours will differ).

        ; Spindle definition
        M950 R0 C"out7" L1000			; use the fan2 port for spindle, 
        M563 P0 S"Spindle 0" R0			; create a spindle #0 named spindle 0
        

        Then, in CNC mode the user interface will add a spindle control like this:

        e0aed3d6-9ebf-408a-9539-0c93d7c57995-image.png

        and check out the M3, M4, and M5 GCode commands. Also, see here: https://docs.duet3d.com/en/User_manual/Machine_configuration/Configuration_CNC

        T3P3Tonyundefined 1 Reply Last reply Reply Quote 0
        • T3P3Tonyundefined
          T3P3Tony administrators @markz
          last edited by T3P3Tony

          @markz unfortunately you cant define a spindle using a stepper motor output using M950

          @Dennis_kim you can set up the stepper motor as an extruder possibly? you would need to send extruder commands along with the movement commands though.

          www.duet3d.com

          markzundefined 1 Reply Last reply Reply Quote 0
          • markzundefined
            markz @T3P3Tony
            last edited by

            @T3P3Tony Whoa my apologies. I just assumed it extended.

            1 Reply Last reply Reply Quote 0
            • timothyzundefined
              timothyz @Dennis_kim
              last edited by

              @Dennis_kim HF020 Pulse Driver Speed Motion Controller

              It's an external board, but it is the best solution to make it act like a spindle, could be controlled with a digital output/heater/fan output. I believe @dc42 said that this was potentially a feature to be added in 3.5, but I think it might not be ready in time (as well as feed hold, which is also useful in places where you have a spindle).

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