3.01-beta2+1 M25 during tool change



  • Might be a small issue with m25 during tool change in a sense that executes all the toolchanging files before pausing the print.

    G91				; relative moves
    G1 V300 H1 F1440                ; feed filament to finda sensor
    G92 V0				; force V to 0mm
    G1 V100 H1  F1440		; feed a bit more to reliably switch sensor 
    G92 V0				; force V to 0mm
    G1 V30 H0 F2000			; feed filament to reach ptfe tube
    G92 V0				; force V to 0mm
    M400				; wait for moves to finish
    G90
    if !sensors.endstops[4].triggered
    	M25
    	M291 P"MMU loading failure detected" S2
    

    This is a small macro called during tpre.g and it is supposed to pause if V endstop is not triggered, but it will display the M291( which will stop and wait for OK) then it will execute tpost.g and only then will pause the print.


  • administrators

    That's correct, if you execute M25 when a tool change is in progress, it will complete the tool change first. M25 can only pause the print at the end of executing a complete line of GCode from the file being printed.



  • Is there any other way to stop the tool change operation if something goes wrong?


  • administrators

    @Ntrack said in 3.01-beta2+1 M25 during tool change:

    Is there any other way to stop the tool change operation if something goes wrong?

    Only emergency stop at present.



  • This post is deleted!


  • I’ll have to wait for variables then.I think I have an idea how to do it using a variable.


Log in to reply