stall detection but not for homing
-
I was wondering if it is possible have optical endstop trigger during homing sequence but if during the sequence, there is a stall detected (eg, anything that gets in the way of the printer trying to move in a certain direction) to immediate do "SOMETHING". I was thinking perhaps a while expression but how would I do it? something like this? can someone see if this will work or completely off:
; Home Z Axis ;M561 ; Disable any Mesh Bed Compensation G90 G1 X0 Y0 F5000 ; Move to the center of the bed M913 Z 20 ;drop motor current to 20% M400 ;wait for all moves to finish M558 F500 ; Set the probing speed M201 Z100 ; reduced Z acceleration while G30 if M915 Z S1 R1 F0 ; G1 z20 ;back off Z 20mm abort M558 F50 ; Set a slower probing speed G30 G32 ; Run 3-point bed calibration defined in bed.g ;G29 S1 ; Enable Mesh Bed Compensation
-
@tekstyle the code as you have it wont work neither G30 nor M915 evaluate to a boolean expression.
I think he way to approach this would be to check the OM key to see if the axis stall was triggered, or if the optical switch was triggered and then carry out the actions based on that.
-
ill look into it. so basically force a trigger, get the OM result. and have it monitor for that result in a IF command