Axis restore position
-
I have a question to return to the original position after pause and restore.
I will try to describe the problem. I have and I believe it has some simple solution that I just can't see. I have a classic X, Y, Z and E0 printer. I use a modified Prusa MMU2 unit for color printing. I use the U, V and W axes to control it. When printing in color and using T0, T1 .... Gcodes everything works without problems.
BUT
However, if I manually pause printing in DWC. Then I exchange the filament, say T0 for T1 for example. The position of the W axis (selector) thus changes. The others (U and V) remain in the result as before the pause. As soon as I resume printing (resume in DWC), X, Y, Z return to where printing was interrupted and resume GCODE as it should. The problem is that the W axis also returns to position before pause. And that's a problem.
I need W not to be affected in any way. Is there any way to do it?
; pause.g ; called when a print from SD card is paused ; ; generated by RepRapFirmware Configuration Tool v3.2.3 on Wed Apr 21 2021 11:35:56 GMT+0200 (Středoevropský letní čas) 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 X20 Y210 F6000 ; go to X=0 Y=0 ;echo fans[0].actualValue set global.fuufuu1 = fans[0].actualValue M106 S0 set global.beepbeep1 = 1
; resume.g ; called before a print from SD card is resumed ; ; generated by RepRapFirmware Configuration Tool v3.3.10 on Sun Nov 28 2021 11:48:24 GMT+0100 (Středoevropský standardní čas) set global.beepbeep1 = 0 M150 R200 U200 B200 M104 S{global.endtemp1} T0 M104 S{global.endtemp1} T1 M104 S{global.endtemp1} T2 M104 S{global.endtemp1} T3 M104 S{global.endtemp1} T4 M109 S{global.endtemp1} G1 R1 X0 Y0 Z5 F6000 ; go to 5mm above position of the last print move G1 R1 X0 Y0 ; go back to the last print move M83 ; relative extruder moves G1 E10 F3600 ; extrude 10mm of filament M106 S{global.fuufuu1}
-
@petrkroupa I think you may be able to resolve this by using the M584 P parameter to hide the UVW axes most of the time, except when you need to operate the filament selector.
-
@dc42 - Good idea. And yes, it works. Thanks a lot!
Basically, just hide the W axis at the end of the tool change macro. And re-enable it at the beginning of the tool change macro. I will try solved my goal by using an event when one filament runs out so that printing continues with the next filament. Now just find enough time ....