strayr / strayr-k-macros

useful macros to extend the functionality of klipper
GNU General Public License v3.0
147 stars 9 forks source link

Shutdown TMC driver reports error #6

Open karlc28 opened 1 year ago

karlc28 commented 1 year ago

Trying to use mechanical level So after typing g34 The gantry homes goes all the way up does the crash as expected and after lowering slightly it pauses then klipper shuts down with the warning tmc stepper z reports error image

strayr commented 1 year ago

Does it do this every time?

Try reducing the current runs the leveling at.

On Sun, 21 May 2023, 14:37 karlc28, @.***> wrote:

So after typing g34 The gantry homes goes all the way up does the crash as expected and after lowering slightly it pauses then klipper shuts down with the warning tmc stepper z reports error [image: image] https://user-images.githubusercontent.com/92265354/239744542-0008c991-874c-4fa8-b631-f05d81d15694.jpeg

— Reply to this email directly, view it on GitHub https://github.com/strayr/strayr-k-macros/issues/6, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKIYU2EPHDTNYQS6DDMYEY3XHILDJANCNFSM6AAAAAAYJNDXTE . You are receiving this because you are subscribed to this thread.Message ID: @.***>

karlc28 commented 1 year ago

Yes each time at the same point Which line would I need to change

It seems to be after levelling just before as it's returning to normal current before homing at the end

What run current did you run I have 2 stepper motors on 1 driver

strayr commented 1 year ago

you can run MECHANICAL_GANTRY_CALIBRATION CURRENT=0.08 or whatever value you need to try, or edit the default in line 54 of mechanical_level_tmc2209.cfg

EDIT: 0.08 not 0.8

On Sun, 21 May 2023 at 15:20, karlc28 @.***> wrote:

Yes each time at the same point Which line would I need to change

— Reply to this email directly, view it on GitHub https://github.com/strayr/strayr-k-macros/issues/6#issuecomment-1556191809, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKIYU2F2F6GYGAZASF2ZFLTXHIQBLANCNFSM6AAAAAAYJNDXTE . You are receiving this because you commented.Message ID: @.***>

strayr commented 1 year ago

TMC drivers are polled for errors periodically, there's a pause after the gantry moves back from the crash position and this is probably when the error state is noted.

On Sun, 21 May 2023 at 15:22, karlc28 @.***> wrote:

It seems to be after levelling just befor as it's returning to normal current before homing at the end

— Reply to this email directly, view it on GitHub https://github.com/strayr/strayr-k-macros/issues/6#issuecomment-1556192320, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKIYU2FPYVFPNIJZ5PEYS2LXHIQKXANCNFSM6AAAAAAYJNDXTE . You are receiving this because you commented.Message ID: @.***>

strayr commented 1 year ago

And sorry, there was a thinko above, a current of 0.8 is waaaay to much, you should probbly be using between 0.24 and 0.05 for the crash, 0.12 works for me.

karlc28 commented 1 year ago

Thank you what was your normal run current for the z as mine is currently 0.9 and I think it may be too high causing the issue

strayr commented 1 year ago

I'm running 0.45 on my Mk2, but it's a bit more complicated as that's two independent z stepper drivers. I'm only crash levelling that when I disturb the bed and then level the gantry off the bed during my normal printing, I'll need to dig in archives to find what I was running the ender 3 at. You don't need a lot of current with Z lead screws, just enough to print reliably. I'd rather keep my run cirrent low than run with enough current to break things if the probe fails.

On Sun, 21 May 2023 at 15:31, karlc28 @.***> wrote:

Thank you what was your normal run current for the z as mine is currently 0.9 and I think it may be too high causing the issue

— Reply to this email directly, view it on GitHub https://github.com/strayr/strayr-k-macros/issues/6#issuecomment-1556194210, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKIYU2GTQBYK5M6VIGJYA33XHIRMPANCNFSM6AAAAAAYJNDXTE . You are receiving this because you commented.Message ID: @.***>

karlc28 commented 1 year ago

Thank you I'm going to drop it to 0.7a and see how it reacts

karlc28 commented 1 year ago

0.75 works perfectly

karlc28 commented 1 year ago

I'm running 0.45 on my Mk2, but it's a bit more complicated as that's two independent z stepper drivers. I'm only crash levelling that when I disturb the bed and then level the gantry off the bed during my normal printing, I'll need to dig in archives to find what I was running the ender 3 at. You don't need a lot of current with Z lead screws, just enough to print reliably. I'd rather keep my run cirrent low than run with enough current to break things if the probe fails.

On Sun, 21 May 2023 at 15:31, karlc28 @.***> wrote:

Thank you what was your normal run current for the z as mine is currently 0.9 and I think it may be too high causing the issue

— Reply to this email directly, view it on GitHub https://github.com/strayr/strayr-k-macros/issues/6#issuecomment-1556194210, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKIYU2GTQBYK5M6VIGJYA33XHIRMPANCNFSM6AAAAAAYJNDXTE . You are receiving this because you commented.Message ID: @.***>

Which line changes the speed at which it raises and lowers as it takes forever