Stall detection on Z still not working!
-
There are no correct settings someone can provide for you even knowing the motor specs. It will take a lot of testing to narrow down a working configuration.
I can tell what worked for me as an example and the reasoning for it but you'll have to test out different values to see what works in your system.
Jerk 1, acceleration 10, speed 200, sensitivity 3, trigger value 200, current 40% of 2000
Changing any of those values even slightly was enough to make it either too sensitive or not sensitive enough.
-
Whenever I start a print, I get stall warnings during the homing process.
If I start the homing by clicking on the button in DWC, I do not get these warnings. -
That's interesting. I can't think of why that would be.
-
Well, but that's the way it is. 100% reproducible.
-
Can you post your homing files?
-
This is the code used to home:
; homeall.g
; called to home all axes
;
; generated by RepRapFirmware Configuration Tool on Fri Feb 02 2018 20:19:38 GMT+0100
G91 ; relative positioning
G1 S2 Z5 F6000 ; lift Z relative to current position
G1 S1 X-235 Y-230 F1800 ; move quickly to X or Y endstop and stop there (first pass)
;G1 S1 X-235 ; home X axis
;G1 S1 Y-235 ; home Y axis
G1 X5 Y5 F6000 ; go back a few mm
G1 S1 X-235 F360 ; move slowly to X axis endstop once more (second pass)
G1 S1 Y-235 F360 ; then move slowly to Y axis endstop
G1 S1 Z-255 F1800 ; move Z down stopping at the endstopM564 H0 S0 ; Allow moving unhomed axes
M906 Z5 ; Set Z motor current to some mA
G1 S0 V-10 ; Move Z down with little force to even the axis out
M18 Z ; Disable the stepper motors for Z
G4 S0.1 ; Wait 0.1 second
M906 Z900 ; Set Z motor current back to 900mA
M564 H1 S1 ; prevent unhomed axes from movingG90 ; absolute positioning
G92 Z0 U0 V0 ; zero position for Z, U(Z1) and V(Z2)G1 Z10 F1800 ; uncomment this line to 0lift the nozzle after homing
-
@garv3 said in Stall detection on Z still not working!:
M906 Z5 ; Set Z motor current to some mA
G1 S0 V-10 ; Move Z down with little force to even the axis out
M18 Z ; Disable the stepper motors for ZI presume you have warn-on-motor-stall enabled. You are deliberately stalling the Z motor in that move. You could use M915 V R0 to disable warning on stall detect before that move, and M915 V R1 afterwards.
-
The problem is not that I get the warning. I want the warning to pop up. The problem is that I get the warning only when printing gcode files. I want it to pop up when using DWC too. Otherwise using stall detection for homing will not work for DWC.
-
You don't need to have warnings pop up when using stall detection for homing; although having warnings appear may help while you are tuning the stall detection threshold.
Warning messages that are not associated with a particular command should appear on all input devices. If they are not appearing in DWC, maybe this is connected with your DWC user interface settings. Have you checked whether they are shown on the GCode Console page of DWC?
-
I know the messages are not necessary for the homeng after tuning but I need them to tune the detection and therefore I want to use them.
They do not appear in the console when using DWC to home. When printing a file, they pop up and are logged in the console.
Additionally I cannot be sure stall detection will work if I do not get messages. I cannot try it before I know it works. -
The easiest way of getting warning that I can think of is to put the commands you want to test in a GCode file and print it. However, when I was testing stall detection endstops, I didn't find any need to do this. If the stall detection is working then the homing move stops when the tower or axis reaches the hard stop. If it tries to keep going, then stall detection isn't working. You should use reduced current when homing with stall detection anyway, to make sure that the motor does stall instead of the belt jumping on the pulley.