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

    VFD integration: M3, M4, M5 Macros and RPM measurement

    Scheduled Pinned Locked Moved
    CNC
    6
    47
    2.7k
    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.
    • kazolarundefined
      kazolar @dc42
      last edited by

      @dc42 there needs to be a way to stop movement when a machine hits hardware limits. There isn't in current firmware. Ask any CNC operator who uses a large CNC machine 1 meter and up, they never home it. It takes too long and serves no purpose the only zero that matters is the work coordinate zero. I honestly would not bother homing my mill either since all I care about are work coordinates too. I added limit switches to prevent a crash

      dc42undefined 1 Reply Last reply Reply Quote 0
      • kazolarundefined
        kazolar @dc42
        last edited by

        @dc42 i think M452 like that would work -- add an option for dwell time (how much it should wait after m# command issued before proceeding to the next line -- spindle needs time to get to speed before cutting or stop cutting and be safe to handle), and you got it. reverse forward is handled like -- floating if forward, close means reverse.

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

          @kazolar said in VFD integration: M3, M4, M5 Macros and RPM measurement:

          @dc42 there needs to be a way to stop movement when a machine hits hardware limits. There isn't in current firmware.

          Yes there is. Surely you know about M581, https://duet3d.dozuki.com/Wiki/Gcode?#Section_M581_Configure_external_trigger ? Trigger 0 was specifically provided for this purpose.

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

            0 trigger requires you to reset the machine manually it should work the same way as the eStop on the web UI or the panelDue -- there is no option to do that presently -- I added that for me, and it works great - -

            dc42undefined 1 Reply Last reply Reply Quote 0
            • kazolarundefined
              kazolar
              last edited by

              @dc42 other controllers treat hitting an eStop the same you treat it with panelDue -- auto reset -- you can even reboot in a (end stop triggered condition, but reboot not force me to manually reset the hardware)

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

                @kazolar said in VFD integration: M3, M4, M5 Macros and RPM measurement:

                0 trigger requires you to reset the machine manually it should work the same way as the eStop on the web UI or the panelDue -- there is no option to do that presently -- I added that for me, and it works great - -

                You can reset the machine via DWC - recent versions even invite you to do that via a Reset Machine button when they detect that the machine has been halted by emergency stop.

                You can also reset the machine by sending M999 from PanelDue. Put it in a macro if you like.

                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

                kazolarundefined 1 Reply Last reply Reply Quote 0
                • kazolarundefined
                  kazolar
                  last edited by

                  @dc42 I made about 20 minutes worth of code changes, and now I am finishing up the wiring. I will probably need more code changes to the firmware to allow for spindle coolant - I want to add a fogbuster to my mill. I have the key safety stuff addressed with M# macros and hardware limit handling pretty similarly how my other 2 CNCs handle them -- it's such a convenience while using the big CNC to tap an end switch when a cut goes bad and have it stop everything and then have the machine stop immediately and reset the controller.

                  1 Reply Last reply Reply Quote 0
                  • kazolarundefined
                    kazolar @dc42
                    last edited by

                    @dc42 M999 waits 1 second before stopping movement -- a lot of bad stuff can happen in 1 second.

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

                      @kazolar said in VFD integration: M3, M4, M5 Macros and RPM measurement:

                      @dc42 M999 waits 1 second before stopping movement -- a lot of bad stuff can happen in 1 second.

                      You misunderstand me. AFTER doing an emergency stop, you can send M999 to reset the machine.

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

                        no I cannot -- I tried -- the controller is frozen, webui is unresponsive -- all my M113 does is do emergency stop and software reset in one command

                        kazolarundefined dc42undefined 2 Replies Last reply Reply Quote 0
                        • kazolarundefined
                          kazolar @kazolar
                          last edited by

                          @dc42 i dont have the paneldue connected yet -- i will add that after I do the pendant mod and figure out where I want the screen to go -- probably somewhere outside where the coolant and chips would be.

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

                            @kazolar said in VFD integration: M3, M4, M5 Macros and RPM measurement:

                            no I cannot -- I tried -- the controller is frozen, webui is unresponsive -- all my M113 does is do emergency stop and software reset in one command

                            9a6709fe-60b7-43fe-9dcd-1b4b29f9f083-image.png

                            Perhaps you are running an old version of DWC?

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

                              @dc42 i don't see that -- it just says waiting to connect. I have 3.02 previously, now have 3.1.1 with my code changes

                              dc42undefined 1 Reply Last reply Reply Quote 0
                              • kazolarundefined
                                kazolar
                                last edited by

                                @dc42 i did not update the dwc -- since I plan to moving to the ooznest dwc anyway.

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

                                  That's what happens when I send M112 from PanelDue. Running DWC 3.1.1. I can reset it by pressing that Reset button, or by sending M999 from PanelDue. Or by using the reset button of course.

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

                                    @dc42 I'm sure my dwc is older, but again -- I doubt that's supported in the ooznest workbee dwc anyway -- and I intend to move to that to get a better CNC web UI

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

                                      @kazolar said in VFD integration: M3, M4, M5 Macros and RPM measurement:

                                      @dc42 I'm sure my dwc is older, but again -- I doubt that's support in the ooznest workbee dwc anyway -- and I intend to move to that to get a better CNC web UI

                                      I understand that Ooznest is porting their changes to DWC 3.1.1. We're waiting on that before we do any work to make DWC more CNC-friendly, because it seems like a good starting point.

                                      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 1
                                      • kazolarundefined
                                        kazolar
                                        last edited by

                                        @dc42 either way -- I figured out how to do the same estop via an m command as hitting estop on the paneldue or webui -- it's a combination if M112 and M999 in one command -- works perfectly

                                        1 Reply Last reply Reply Quote 0
                                        • kazolarundefined
                                          kazolar
                                          last edited by

                                          @dc42 after everything is assembled and cutting I will tweak that behavior to retain the coordinate system. I'd like to be able to mimic mach3 on the way hardware limits are handled. I'm not asking you to implement it -- I'll do it myself. I'm coming at this from a perspective that I've been running duet2 on my quad (dual idex) printer and it's been great with i2c stuff now sorted. I have used other CNCs to build that printer and have become pretty comfortable and familiar with how they operate, and I've talked to many folks who do machining for a living. The behaviors I'm implementing are just features which are present on other CNC targeted controllers. I wouldn't run mach3 on a 3D printer. My goal with this CNC mill conversion is to do it without needing a PC to run it - I'm pretty much there -- some minor firmware adjustments and a better web UI, and it's good to go.

                                          1 Reply Last reply Reply Quote 0
                                          • Visionaryundefined
                                            Visionary @dc42
                                            last edited by

                                            @dc42

                                            Duet 3 can drive Nema 34 motors, as long as you are not looking for both high torque and high speed, which would need more than 32V. We're looking at supporting 48v power in future.

                                            Can high torque nema 23/24 stepper motors be used with Duet 3 even if calculated back EMF is much higher than 32V? I couldn't find a motor that had small enough voltage requirement (using documentation recommended calculations for back EMF) and high torque.

                                            Calculated voltages (required due to back EMFs) for few motor candidates (@400 rpm, with about 80% current):
                                            24HS39-4204D, 52V
                                            24HP39-5004S, 37V
                                            23HP45-4204S, 36V

                                            23HS41-1804S, 78V (I currently have these on my CNC and they seem to stall at about 300 RPM with 24V PSU).

                                            Main printer: 3-5 Axis, 400x400x450 Duet 6HC || https://grabcad.com/eetu-4/models

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