Configuring Pre-Stall
-
@jay_s_uk I'll give it a go, thank you. What's the downside to using high resolution segmentation? Presumably it uses more processing power?
-
@jjem it "may" affect IS but I'm not 100%. it shouldn't over power the MCU though
-
@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.
-
@dc42 Thank you both.
I'm finding M220 isn't affecting speeds inside of any macros. It does work for individual moves though.
-
@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.
-
@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%
-
@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.
-
@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.
-
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
-
@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.
-
@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.
-
@dc42 Great, thank you
-
@dc42 No luck unfortunately, I updated mainboard and all expansions but behaviour is the same.
-
@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.
-
@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+
-
@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.3Ian
-
@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.
-
@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:
I've updated DWC to 3.5.0-rc.3 but that hasn't helped.
-
thank you. Do you know when that might be ready, so I can plan around it? Thanks.