3.5.1 M226 flaky or user error?
-
Hi, trying to put an M226 within my Gcode to stop a print to insert a washer. This works hit or miss. If I place it at the start of a layer, it will work. If I take too long to put the washer in, once resume is hit, it will move back, sit there and present an error that it took too long. When I tried to add this in a different area (before infill) it will return to the stopping spot
and home z and just be unresponsive. I did a search and have seen post about similar behavior in older FW versions but nothing resent.I would like this pause in the infilll rather than the perimeter if it will work that way but I have a feeling you are going to tell me that is why it is not working
; infill
G1 X104.847 Y60.348 F18000
;CUSTOM_GCODE
;PAUSE
M117 Insert washer
M226
;END PAUSE
G92 E0
G1 X105.014 Y60.515 E0.0193 F840 -
@airscapes Because M226 calls pause.g and resume.g (when you resume), can you post those macros?
Also, if you're on RRF 3.5.1, it may be worth updating to 3.5.2, as I think there were some bug fixes around running macros during a print.
Ian
-
@droftarts Thanks! There is also some weirdness with Y homing when loading a Hight map, so maybe the upgrade will take care of that as well.
Here are the 2 macros.. The pause and resume using the GUI works as expected and if I add the M226 at the start of the layer is is also working correctly for the most part.; pause.g ; called when a print from SD card is paused ; ; generated by RepRapFirmware Configuration Tool v3.3.10 on Sun Nov 28 2021 16:12:33 GMT-0500 (Eastern Standard Time) M83 ; relative extruder moves G1 E-10 F3600 ; retract 10mm of filament G91 ; relative positioning G1 Z5 F360 ; lift Z by 5mm G90 ; absolute positioning G1 X0 Y250 F6000 ; go to X=0 Y=250
Resume
; resume.g ; called before a print from SD card is resumed ; ; generated by RepRapFirmware Configuration Tool v3.3.10 on Sun Nov 28 2021 16:12:33 GMT-0500 (Eastern Standard Time) G1 R1 X0 Y0 Z5 F6000 ; go to 5mm above position of the last print move G1 R1 X0 Y0 Z0 ; go back to the last print move M83 ; relative extruder moves G1 E10 F3600 ; extrude 10mm of filament