Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[delayed_gcode set_tmc_slope]
initial_duration: 2.0
gcode:
# This sends the value 2 directly to the slope_control register
# of the TMC2240 after the machine finishes booting.
SET_TMC_FIELD STEPPER=stepper_x FIELD=slope_control VALUE=2
SET_TMC_FIELD STEPPER=stepper_y FIELD=slope_control VALUE=2
{action_respond_info("TMC Slope Control forced to 2")}
# Controls the slew rate of the gate driver output. The chip default is 0,
# corresponding to 100V/µs. Setting to 2 (400V/µs) or 3 (570V/µs) can
# significantly reduce driver temperature (users report ~15-20°C reduction
# at 50kHz chopper frequency). A value of 2 matches TMC2209 slew rate.
# Higher values may increase EMI. See TMC2240 datasheet for details.
Loading