Coolstep configuration
-
Hi, I want to configure Coolstep on my HEVO, but I do not know what to include in the M915 gcode, the wiki is not too helpful
-
The value you enter in the M914 T parameter goes into the coolstep configuration register of the TMC2660. Read the section of the TMC2660 datasheet about coolStep for more information.
-
@dc42 I read it a lot of times but I still don't know how to configure it
-
From section 5.1 of the TMC2660 datasheet:
Before tuning coolStep, first tune the stallGuard2 threshold level SGT, which affects the range of the load measurement value SG. coolStep uses SG to operate the motor near the optimum load angle of +90°.
SGT is set by the M915 S parameter. You can use the min/max SG values reported by M122 to help find an appropriate value.
After that, set SEMIN according to whether you want the minimum current to be 1/2 or 1/4 of the configured current, and SEUP and SEDN depending on how fast you want coolStep to react to changes in load.
-
Yeah, I get that, but I dont get how to enter it as a 16bit integer into the T part
-
@patakopecek said in Coolstep configuration:
Yeah, I get that, but I dont get how to enter it as a 16bit integer into the T part
Use the table in section 6.7 of the datasheet to work out the bit pattern, and express bits 0-15 as a 16-bit integer.
-
This post is deleted! -
Hi everybody, I need help. I am trying to implement coolstep feature (I have DUET 3 and firmware 3.0). I am sending a command e.g. M915 X T32904 (I tried little/big - endian) and there is no change in log - still coolstep is 0 - and the motor sound is also the proof - my parameter S (stallguard) is well set - about 300 with no load (bigger stepper is set for 600 with no load). My answer is - is it impelentet for TMC516x and duet 3? with firmware 3.0? Because - sending a command e.g. M915 X T99505454 - return no error etc. and after many tries (combination from tmc datasheet) - there is still no change and coolstep is in the log 0. Please @dc42 , could you provide en example of setting a coolstep command? Thanks for any help