Re: MKS GEN-L V2.1 + TMC5160 = strange behaviour #mks #mount


Vroobel
 

Thank you, that's clear to me now. 

I tried with both the PULSE and the SQUARE, the SQUARE is significantly slower, so as long as the PULSE works well I use it. 

Best regards,
Tomasz Kruk


On Fri, 10 Sep 2021, 10:29 Howard Dutton, <hjd1964@...> wrote:
On Thu, Sep 9, 2021 at 11:16 PM, Vroobel wrote:
What a difference is between GENERIC, GENERIC1, GENERIC2 and GENERIC3 driver model? 
#define GENERIC  12 // alias for GENERIC1
#define GENERIC1 12 // step/dir stepper driver with EN LOW,  allows                        for 1x,2x,4x,8x,16x,32x,64x,128x,256x (no mode switching)
#define GENERIC2 13 // step/dir stepper driver with EN HIGH, otherwise as above
#define GENERIC3 14 // step/dir stepper driver with EN LOW,  inverted step signal (steps on LOW), otherwise as above
#define GENERIC4 15 // step/dir stepper driver with EN HIGH, inverted step signal (steps on LOW), otherwise as above

Don't forget about PULSE mode in Config.h for a 1.6x speedup, SQUARE as a more stable (and forgiving WRT signal timing) but on a slow Mega2560 it probably doesn't matter.

#define STEP_WAVE_FORM PULSE

Join main@onstep.groups.io to automatically receive all group messages.