Temporarily changing M566/M201 values?
-
My config. has these commands:
M566 X1200 Y1200 Z100 E3000 ; Set maximum instantaneous speed changes (mm/min) (Jerk) M201 X6000 Y6000 Z30 E8000 ; Set maximum accelerations (mm/s^2)
But during x,y homing which is done by stall, I want to change it temporarily (for a more reliable stall detection) to:
M566 X600 Y600 Z100 E600 ; Set maximum instantaneous speed changes (mm/min) (Jerk) M201 X600 Y600 Z30 E600 ; Set maximum accelerations (mm/s^2)
Is there a simple way of doing? Ideally with a local M120/M121 style push/pop.
-
Change it before the move and then change it back after. All in your homing macro.
-
@phaedrux said in Temporarily changing M566/M201 values?:
Change it before the move and then change it back after. All in your homing macro.
Thanks @Phaedrux . I tried to avoid specifying same values in multiple places, to simplify maintenance, so I created to macro files sys/mode_normal.g and sys/mode_stall.g and calling them from a few places but hoped for a simpler solution, e.g. a push/pop style, or being able to change jerk using percentage as I do with temporary reduced motor currents.
-
I use macros as well for setting temporary values and then seeing then back.
-
@zapta said in Temporarily changing M566/M201 values?:
My config. has these commands:
M566 X1200 Y1200 Z100 E3000 ; Set maximum instantaneous speed changes (mm/min) (Jerk) M201 X6000 Y6000 Z30 E8000 ; Set maximum accelerations (mm/s^2)
But during x,y homing which is done by stall, I want to change it temporarily (for a more reliable stall detection) to:
M566 X600 Y600 Z100 E600 ; Set maximum instantaneous speed changes (mm/min) (Jerk) M201 X600 Y600 Z30 E600 ; Set maximum accelerations (mm/s^2)
Is there a simple way of doing? Ideally with a local M120/M121 style push/pop.
There is no need to change either of those parameters. The only moves for which stall-detection homing is active aree the G1 H1 (or G1 S1) moves in the homing files. You can specify whatever feed rate you want in those commands, so the M203 setting is irrelevant unless it is lower (which would be odd). Jerk is not used on those moves, so the jerk setting is irrelevant.