Notifications
Clear all

Custom gcode to heat the bed without printing  

  RSS
Emily
(@emily)
Active Member
Custom gcode to heat the bed without printing

I am looking for a way to create a programin PrusaSlicer that will heat the bed for a certain amount of time (a few hours), without printing anything. Is this possible? Without the printer shutting off automatically?

Posted : 26/10/2020 11:12 am
Neophyl
(@neophyl)
Illustrious Member
RE: Custom gcode to heat the bed without printing

Possibly.  It depends on the firmware turning the bed off for safety reasons.  If it thinks that a print is still running then it shouldnt turn the bed off.

I would think that something like 

M140 S60 ; set bed temp to 60 degrees
M190 S60 ; wait for bed temp to reach 60 degress
G4 S600 ;Dwell for 600 seconds (10 minutes), might need to shorten this time depending on if the firmware turns the bed off quicker than 10 minutes
M190 S60
G4 S600 ; repeat this line as many times as you need to get the time you want

;Id still have a turn off section at the end just for safety sake and I'm not sure if the gcode parser is looking for the M84 to indicate the end of a file
M140 S0 ; turn off heatbed
M84 ; disable motors

 

No need to use any slicer, just use a text editor like notepad and save it as your_filename.gcode and then save it to the sd card as normal.

Posted : 26/10/2020 12:33 pm
Emily
(@emily)
Active Member
Topic starter answered:
RE: Custom gcode to heat the bed without printing

@neophyl

Thanks! I will give this a try 🙂

Posted : 26/10/2020 12:47 pm
--
 --
(@)
Illustrious Member
RE: Custom gcode to heat the bed without printing

And - adding to Neo's idea, you can intersperse a few simple moves, like moving the extruder up and down or left then right a step or three. Just in case lack of motion is what triggers the auto-off.

Posted : 26/10/2020 7:11 pm
Share: