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

    Configuring Pre-Stall

    Scheduled Pinned Locked Moved
    Tuning and tweaking
    6
    33
    1.1k
    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.
    • jay_s_ukundefined
      jay_s_uk @jjem
      last edited by

      @jjem it "may" affect IS but I'm not 100%. it shouldn't over power the MCU though

      Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

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

        @jjem in general, moves already in the movement queue can't be altered. You can abort the later moves in the move queue by commanding a pause.

        As @jay_s_uk says, you can use segmentation (see M669) to split long moves into short moves, to get faster response to movement speed changes and fast response to pause commands. To reduce movement speed temporarily I suggest you use M220 rather than M203.

        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

        jjemundefined 1 Reply Last reply Reply Quote 1
        • jjemundefined
          jjem @dc42
          last edited by

          @dc42 Thank you both.

          I'm finding M220 isn't affecting speeds inside of any macros. It does work for individual moves though.

          gloomyandyundefined dc42undefined 2 Replies Last reply Reply Quote 0
          • gloomyandyundefined
            gloomyandy @jjem
            last edited by

            @jjem I think it would help if you posted an example and explained what you expect it to do and what you actually observe it doing.

            jjemundefined 1 Reply Last reply Reply Quote 0
            • jjemundefined
              jjem @gloomyandy
              last edited by

              @gloomyandy Sure, if I run M220 S100, and then G1 X50 F60000 it runs at the requested speed. If I do M220 S1 followed by G1 X50 F60000 then it runs very slowly. So the command works properly in this context.

              If I run M220 S1 in DWC and then run a macro, which only contains G1 X50 F60000, it moves at full speed not at 1%. If I call M220 after that macro it confirms the speed is set at 1%

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

                @jjem said in Configuring Pre-Stall:

                @dc42 Thank you both.

                I'm finding M220 isn't affecting speeds inside of any macros. It does work for individual moves though.

                It won't affect the speed of moves in system macros (e.g. homing, pausing) but it should affect speeds of moves in user macros - assuming that the requested speed wasn't higher than the limit set by M203.

                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

                jjemundefined 1 Reply Last reply Reply Quote 0
                • jjemundefined
                  jjem @dc42
                  last edited by

                  @dc42 The macro is within the macros folder, not within sys. M203 returns 60000 which is the max speed for this X axis as set in the config. So I can't see why it's not working.

                  jjemundefined 1 Reply Last reply Reply Quote 0
                  • jjemundefined
                    jjem @jjem
                    last edited by

                    This is the macro I'm using now, within the macros folder contains:

                    M220
                    M203
                    G1 X50 F60000
                    M220
                    M203
                    G1 X-50 F60000
                    M220
                    M203
                    

                    If I run M220 S1 and then run it, it returns:

                    M98 P"0:/macros/test.g"
                    Speed factor: 1.0%
                    Max speeds (mm/min): X: 60000.0, Y: 180000.0, Z: 160000.0, E:, min. speed 30.00
                    Speed factor: 1.0%
                    Max speeds (mm/min): X: 60000.0, Y: 180000.0, Z: 160000.0, E:, min. speed 30.00
                    Speed factor: 1.0%
                    Max speeds (mm/min): X: 60000.0, Y: 180000.0, Z: 160000.0, E:, min. speed 30.00
                    

                    If I run M220 S100 and then run it, it returns:

                    M98 P"0:/macros/test.g"
                    Speed factor: 100.0%
                    Max speeds (mm/min): X: 60000.0, Y: 180000.0, Z: 160000.0, E:, min. speed 30.00
                    Speed factor: 100.0%
                    Max speeds (mm/min): X: 60000.0, Y: 180000.0, Z: 160000.0, E:, min. speed 30.00
                    Speed factor: 100.0%
                    Max speeds (mm/min): X: 60000.0, Y: 180000.0, Z: 160000.0, E:, min. speed 30.00
                    

                    But both both visibly run at 100% speed

                    dc42undefined 2 Replies Last reply Reply Quote 0
                    • dc42undefined
                      dc42 administrators @jjem
                      last edited by

                      @jjem you are right, currently M220 isn't applied to moves in macros at all. I'll look at how easily this can be fixed.

                      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
                      • dc42undefined
                        dc42 administrators @jjem
                        last edited by

                        @jjem this should be fixed in the firmware I have just uploaded to https://www.dropbox.com/scl/fo/p0136wx04h8xf6ejwdnn9/h?rlkey=efrfwyb6o5tqid11gustz3uvy&dl=0.

                        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

                        jjemundefined 2 Replies Last reply Reply Quote 0
                        • jjemundefined
                          jjem @dc42
                          last edited by

                          @dc42 Great, thank you

                          1 Reply Last reply Reply Quote 0
                          • jjemundefined
                            jjem @dc42
                            last edited by

                            @dc42 No luck unfortunately, I updated mainboard and all expansions but behaviour is the same.

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

                              @jjem I've just tested that macro, and with the new firmware build it works correctly for me when I invoke it directly from 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

                              jjemundefined 1 Reply Last reply Reply Quote 0
                              • jjemundefined
                                jjem @dc42
                                last edited by

                                @dc42 I have tried updating again, in-case I had the wrong files, but still not luck. I can't see a DWC update file, do I need one? It's currently on 3.5.0-rc.2 whereas all other boards are now on 3.5.0-rc.3+

                                droftartsundefined dc42undefined 2 Replies Last reply Reply Quote 0
                                • droftartsundefined
                                  droftarts administrators @jjem
                                  last edited by

                                  @jjem Do you mean your mainboard isn't updated? I think you're on a 6XD. Use Duet3Firmware_6XD.bin from @dc42's dropbox link above. It's there, I've checked!
                                  For DWC, use "DuetWebControl-SD.zip" from https://github.com/Duet3D/RepRapFirmware/releases/tag/3.5.0-rc.3

                                  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
                                  • dc42undefined
                                    dc42 administrators @jjem
                                    last edited by dc42

                                    @jjem please post the output from sending M115 or M122, to confirm the firmware version you are using.

                                    I tested the behaviour when running a macro directly from the Macros menu in DWC. It is likely to behave differently if the macro is called from a system macro such as pause.g.

                                    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

                                    jjemundefined 1 Reply Last reply Reply Quote 0
                                    • jjemundefined
                                      jjem @dc42
                                      last edited by

                                      @dc42 M122 returns

                                      M122
                                      === Diagnostics ===
                                      RepRapFirmware for Duet 3 MB6XD version 3.5.0-rc.3+ (2024-02-26 21:13:26) running on Duet 3 MB6XD v1.01 or later (standalone mode)
                                      

                                      And the settings show this:

                                      52ec46c2-f6c2-42d6-8d08-52e0c6ff7276-image.png

                                      I've updated DWC to 3.5.0-rc.3 but that hasn't helped.

                                      1 Reply Last reply Reply Quote 0
                                      • skitidalundefined
                                        skitidal
                                        last edited by

                                        thank you. Do you know when that might be ready, so I can plan around it? Thanks.

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