Heaters remain on after upgrade from version 3.3 to 3.4
-
@trobison said in Heaters remain on after upgrade from version 3.3 to 3.4:
After reading G-Code docs again, I will add a M0 in the stop.g file and see if that yields the result I am after. Below is a snippet from the M0 page. I thought a M0 in my end gode would stop the heaters, but it did not. Perhaps the stop.g file is where it should go.
This is re-edit entry of my post. Putting the M0 in the stop.g file, the result is that it did turn off the heaters.
That introduced an error on the console after the print.
17/03/2022, 16:41:23 Error: Max open file count exceeded.
Error: Max open file count exceeded.
Error: Max open file count exceeded.
Error: Max open file count exceeded.
17/03/2022, 16:41:20 Finished printing file 0:/gcodes/cube N4 HIPS.gcode, print time was 0h 25mI have to track down the other issue where the nozzle heats up over build (ozzing filament over that area), then dropping to 0.0mm height once it reaches temperature, and then moving off the cleaning station. It didn't do that earlier.
-
If you use M0 and stop.g all you should have in your slicer end gcode is M0. Then put any commands you wish to happen in stop.g, i.e. turn off heaters, etc etc.
-
@phaedrux Can you put M0 in stop.g or does that cause a recursive call to stop.g (which might be the cause of the Max open file count exceeded messages)? If you can't put M0 in stop.g is there anyway to turn off all heaters (other than doing them one by one)?
-
@gloomyandy My understanding is that if stop.g is present, M0 will call that macro and nothing else. Also from my understanding, M0 without stop.g should turn off the heaters. Waiting for DC42 to investigate.
I'm not sure if there is another way to turn off all the heaters at once. Possibly with a loop that cycles through the heaters and turns them off?
-
-
I removed the M0 from the stop.g and inserted the commands below:
M140 H0 ; Set bed heater to 0
M568 P0 R0 S0 ; Set T0 off
M568 P1 R0 S0 ; Set T1 off
M568 P2 R0 S0 ; Set T2 off
M568 P3 R0 S0 ; Set T3 offAt the end of the print, T1 (in this test) dropped to the standby temp, and the bed remains active. I then typed in "M568 P1 R0 S0" at the console and the heater was set to 0. Typing "M140 H0" turned off the bed.
It appears that commands in stop.g are not processed at the end of a successful print, and I might have to put these in the slicer's end G-Code. -
@trobison said in Heaters remain on after upgrade from version 3.3 to 3.4:
It appears that commands in stop.g are not processed at the end of a successful print
The stop.g macro will only be invoked if your slicer puts a
M0
at the end of its file. Are you sure this gCode is there?To verify, insert this line into your stop.g file:
M291 P"stop.g is executed"
It will alert you when the macro is called. If not, I'm pretty sure there's no
M0
in your slicer's output. -
@infiniteloop
I can try that. The second paragraph of my initial post I said that I opened up the gcode generated from SuperSlicer, and there is a "M0" command in there. This was inserted from the End-gcode field in the slicer. The heaters remained on. -
The command did not echo anything to the webpage or screen at the end of print.
-
I believe I have it working. I added the following to my End-Gcode in the slicer (SuperSlicer)"
M140 H0 ; Set bed heater to 0 M568 P0 R0 S0 ; Set T0 off M568 P1 R0 S0 ; Set T1 off M568 P2 R0 S0 ; Set T2 off M568 P3 R0 S0 ; Set T3 off M84 ; disable motors M291 P"Print Finished"
The print finished and popped up a friendly message. I am still unclear why M291 P"stop.g is executed" in the stop.g didn't echo a message.
-
@trobison said in Heaters remain on after upgrade from version 3.3 to 3.4:
I added the following to my End-Gcode in the slicer (SuperSlicer)"
Instead of all these lines, simply add a
M0
to the end-gCode of SuperSlicer. -
@infiniteloop
A test print has completed with a M0 command at the end of the End-gcode, and the heaters are still on.
I typed in a M0 in the console - the heaters remain on. -
@trobison Setting the temperature to zero is not the same as turning the heater off. You can use the A-parameter of M568 to change the heater state to off:
M568 P0 A0
To turn off the bed, you need: "M140 H0 S-274".Normally, all these commands should be in stop.g while the End-gcode in the slicer should only contain a single M0.
-
@örjane Cheers. A single M0 doesn't seem to work since the firmware update. I will make the changes you have suggested.