Re: Mks gen l v20

Mike Ahner

On Tue, May 17, 2022 at 05:12 PM, robert utecht wrote:
verything on the config file is set to off
There is the problem, Bob. Current for a TMC5160 must be set through the Config.h file, otherwise it defaults to max current to drive your motors. Because these drivers have the stand-still current reduction, your DEC is not running hot but it's warm and that shouldn't be happening if the motor is stopped. It suggests that even the reduced current is too much.

You'll must set the current in the config.h file with these lines:

/ *** = SSS TMC5160 you must set stepper driver current (in mA) w/ #define AXISn_TMC_IRUN (IHOLD, etc.)
// see

#define AXIS1_DRIVER_IHOLD            OFF //    OFF, n, (mA.) Current during standstill. OFF uses IRUN/2.0                    Option
#define AXIS1_DRIVER_IRUN             OFF //    OFF, n, (mA.) Current during tracking, appropriate for stepper/driver/etc.    Option
#define AXIS1_DRIVER_IGOTO            OFF //    OFF, n, (mA.) Current during slews. OFF uses same as IRUN.                    Option

The wiki suggests starting at approximately 35%~40% and increase as needed until slews don't stall. Lower is better, suggested not more than 60% or so, however this varies for each setup. Stepper accuracy is better by using less than max current.

TMC5160 drivers are configured only thru SPI so you need to make sure you're MKS board is configure/wired to us SPI control for the steppers. I don't use this board, so I can't tell you how it should be configured, but you should find that in the Wiki or other threads.

Here's the Wiki for setting stepper driver current, the method is valid but your drivers won't have trim pots. Just use the config.h

Good luck,


Join to automatically receive all group messages.