Pause and Resume macro files for PLA & ABS seperately
-
I am using DUET 0.6 with 1.19.2 RRP.
I need a help in Pausing and Resuming macros. Example, when the power goes, I will 'Pause' the print, so that the extruder will move to the parking location and the heater should be switched off. (I am having UPS backup). Electronics will be powered.
In Pause.g, I have written the following:
M190 S0;
M109 S0;
G1 X0 Y50 F6000When the power comes, when resuming, I am facing issues. When printing with PLA, I wanted only the extruder temperature to reach the previous temp and the heat bed should be '0' only. With ABS, I need both the extruder and heat bed temperatures to reach the previous temperature.
In 'Resume.g', I am using the following codes:
;M190 S100;
;M109 S215;
According to the PLA or ABS, every time I am changing the values and uploading. Is there any g-code to take the temperature what it was before pausing?I tried with M116, M116 P0 H0. Both didn't work.
Thanks for helping.
-
I suggest you use T-1 to deselect the tool, that will set it to standby temperature. Then you can use T0 to select it and bring it up to temperature. Similarly, use M144 to set the bed to standby, and M140 to turn it on again.
-
I suggest you use T-1 to deselect the tool, that will set it to standby temperature. Then you can use T0 to select it and bring it up to temperature. Similarly, use M144 to set the bed to standby, and M140 to turn it on again.
In 'Pause.g', i have given the following:
T-1;
M83
G1 E-4 F3600
G91
G1 Z+5 F200
G90
G1 X0 Y50 F6000When I pause, it goes to the standby-temp (0).
In 'Resume.g', i have given the following:
T0;
M104 S T0;
M109 S T0;G1 R1 ; lower nozzle to resume point
M83 ; relative extruder moves
G1 E4 F2500 ; undo the retractionThe first three lines are the confusion. If I give only T0, tool is enabled, but it didnt reach the temperature.
Should I add M104? How exactly the command will come? What should be added with S parameter?Also, for bed, along with M140 what should be used?
Thanks
-
You can use M116 after the T0 and M140 commands.
-
Absolutely working. Sorry for late reply. Thanks.